public MainControl() { InitializeComponent(); consoleTextBox.Rtf = Resources.mainFormDoc; try { settings = Settings.Load(); } catch (Exception) { settings = Settings.Standard; } settingsControl = new SettingsControl(this); this.ParentChanged += (sender, args) => { settingsControl.Visible = false; Parent.Controls.Add(settingsControl); }; neutralControlBar1.Init(this); runningControlBar1.Init(this); parallelRunControlBar1.Init(this); State = States.Stopped; }
public CreateLayoutForm(SettingsControl parent) { InitializeComponent(); settingsControl = parent; keyboardButtons = new Button[30]; keyboardButtons[0] = pos10Button; keyboardButtons[1] = pos11Button; keyboardButtons[2] = pos12Button; keyboardButtons[3] = pos13Button; keyboardButtons[4] = pos14Button; keyboardButtons[5] = pos15Button; keyboardButtons[6] = pos16Button; keyboardButtons[7] = pos17Button; keyboardButtons[8] = pos18Button; keyboardButtons[9] = pos19Button; keyboardButtons[10] = pos20Button; keyboardButtons[11] = pos21Button; keyboardButtons[12] = pos22Button; keyboardButtons[13] = pos23Button; keyboardButtons[14] = pos24Button; keyboardButtons[15] = pos25Button; keyboardButtons[16] = pos26Button; keyboardButtons[17] = pos27Button; keyboardButtons[18] = pos28Button; keyboardButtons[19] = pos29Button; keyboardButtons[20] = pos30Button; keyboardButtons[21] = pos31Button; keyboardButtons[22] = pos32Button; keyboardButtons[23] = pos33Button; keyboardButtons[24] = pos34Button; keyboardButtons[25] = pos35Button; keyboardButtons[26] = pos36Button; keyboardButtons[27] = pos37Button; keyboardButtons[28] = pos38Button; keyboardButtons[29] = pos39Button; KeyPreview = true; }