private void Init() { lastCorrectPort = textBox_Port.Text; toolTip = new ToolTip(); AddToolTips(); richTextBox_ChangeKeyPressed.SelectionAlignment = HorizontalAlignment.Center; panel_ChangeKey.PreviewKeyDown += new PreviewKeyDownEventHandler(ChangeKeyPanelKeyDown); button_ChangeKeyOK.GotFocus += new EventHandler(ChangeKeyButtonGotFocus); button_ChangeKeyCancel.GotFocus += new EventHandler(ChangeKeyButtonGotFocus); // Load data here (will be expanded in the next update): string[] minusKeys = null, plusKeys = null; /*if(true) // Is file. * { * * } * else * { * * }*/ //ChangeLanguage(); keysController = new KeysController(this, minusKeys, plusKeys); communication = new Communication(keysController, this, label_Status, textBox_Port); soundPlayer = new SoundPlayer(); }
public Communication(KeysController keysController, RemoteRewinderForm form, Label label_StatusDesc, TextBox textBox_Port) { this.keysController = keysController; this.form = form; this.label_StatusDesc = label_StatusDesc; this.textBox_Port = textBox_Port; GetIP(); }