private void DevicesButtonActivate()
 {
     df = new DeviceForm(0)
     {
         StartPosition = FormStartPosition.CenterScreen
     };
     df.ShowDialog();
 }
Beispiel #2
0
        private void DeviceSelectButton_Click(object sender, EventArgs e)
        {
            df = new DeviceForm(1)
            {
                StartPosition = FormStartPosition.CenterScreen
            };
            df.ShowDialog();

            if (df.DialogResult == DialogResult.OK)
            {
                Device dc = df.SelectedDevice;
                DeviceModel.Text = dc.Model;
                DeviceType.Text  = dc.Type;
            }
        }