//======================================================== // Constructors //======================================================== public MainForm() { InitializeComponent(); UserName = string.Empty; Settings = new SettingsForm(); InputName = new NameForm(); InputName.FormClosed += InputName_FormClosed; this.Shown += MainForm_Shown; }
//======================================================== // Constructors //======================================================== public MainForm() { InitializeComponent(); UserName = string.Empty; Settings = new SettingsForm(); InputName = new NameForm(); InputName.FormClosed += InputName_FormClosed; this.Shown += MainForm_Shown; this.KeyPreview = true; this.KeyDown += MainForm_KeyDown; }