Esempio n. 1
0
        private void close_form()
        {
            if (WocketForm != null)
            {
                WocketForm.Close();
                WocketForm = null;
            }

            Application.Exit();
        }
Esempio n. 2
0
        //Get Settings
        private void button_settings_Click(object sender, EventArgs e)
        {
            if (this.dataGridView1.SelectedRows.Count <= 0)
            {
                MessageBox.Show("Please select a wocket");
                return;
            }

            label_status.Text = "Loading Wocket...";
            button_settings.Enabled = false;
            Application.DoEvents();

            DataGridViewRow selected_row = this.dataGridView1.SelectedRows[0];
            int selected_device_index = selected_row.Index;

            WocketForm = new Form7((BluetoothDeviceInfo) bluetoothlist[selected_device_index]);
            WocketForm.Show();

            label_status.Text = "Wocket Loaded...";
            button_settings.Enabled = true;
        }