GabrielTofvesson 3c36755c7c Added internationalization manager
- Prioritizes language file matching system language above all else
  - Secondarily prioritizes "default" lang file
  - Prioritizes lang files declared in meta file (low-to-high priority system)
Moved resource files to one folder
Added multi-file loading support
Started creating a shared layout resource file
Added language files
  - Swedish (default): Incomplete
  - English US (priority 0): Complete
  - English GB: (priority ): Complete
Continued implementing ListVew
Added reference support for 'top' variable in View.Draw()
2018-04-04 11:58:09 +02:00

27 lines
699 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, LangManager lang) : base(parameters, lang)
{
}
public override bool HandleKeyEvent(ConsoleController.KeyEvent info, bool inFocus)
{
return base.HandleKeyEvent(info, inFocus);
}
public void SetEvent(SubmissionEvent listener) => evt = listener;
}
}