public Form2(Form1 main, ButtonGUI _editedButton) { InitializeComponent(); this.comboBox1.Items.AddRange(BlueBotCompiler.GetFunctions()); this.comboBox2.Items.AddRange(BlueBotCompiler.GetVariables()); editedKey = _editedButton; this.kbEdited.Text = editedKey.Button.Text; this.rtbCommandDown.Text = editedKey.CommandDown; this.rtbCommandUp.Text = editedKey.CommandUp; changeKey = false; changeSign = false; isActiveUp = false; }
//KONSTRUKTOR OKIENKA public Form1() { //Zainicjowanie okienka InitializeComponent(); FormGraph_HideEditMenu(); //Załadowanie biblioteki BlueBoard BlueBotCompiler.LoadLibrary(@"C:\Users\Admin\Documents\Arduino\AlphaBot\BlueBot\Names.h"); this.comboBox1.Items.AddRange(BlueBotCompiler.GetVariables()); this.comboBox2.Items.AddRange(BlueBotCompiler.GetFunctions()); //Inicjalizacja obiektu oraz eventów do obsługi połączenia (odbierania i wysyłania danych) InitializeSerialPort(); //Inicjalizacja obsługi klawiatury i GUI InitializeGUI(); }