GabrielTofvesson 5aacdba782 Started implementing ListView
Started standardizing event system
2018-04-03 23:51:06 +02:00

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;
}
}