27 lines
675 B
C#
27 lines
675 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Client.ConsoleForms.Parameters;
|
|
using Client.ConsoleForms.Events;
|
|
|
|
namespace Client.ConsoleForms.Graphics
|
|
{
|
|
public class ButtonView : TextView, ISubmissionListener
|
|
{
|
|
protected SubmissionEvent evt;
|
|
|
|
public ButtonView(ViewData parameters) : base(parameters)
|
|
{
|
|
}
|
|
|
|
public override bool HandleKeyEvent(ConsoleController.KeyEvent info, bool inFocus)
|
|
{
|
|
return base.HandleKeyEvent(info, inFocus);
|
|
}
|
|
|
|
public void SetEvent(SubmissionEvent listener) => evt = listener;
|
|
}
|
|
}
|