Beispiel #1
0
 private void openButton_Click(object sender, EventArgs e)
 {
     if (listBox1.SelectedIndex >= 0)
     {
         ScreenDetails temp = (ScreenDetails)listBox1.Items[listBox1.SelectedIndex];
         mainForm.refreshOutputLocation(temp.Screen);
         this.Close();
     }
 }
Beispiel #2
0
 private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (listBox1.SelectedIndex >= 0)
     {
         ScreenDetails temp = (ScreenDetails)listBox1.Items[listBox1.SelectedIndex];
         nameTextBox.Text        = temp.Screen.DeviceName;
         boundsTextBox.Text      = temp.Screen.Bounds.ToString();
         typeTextBox.Text        = temp.Screen.GetType().ToString();
         workingAreaTextBox.Text = temp.Screen.WorkingArea.ToString();
     }
 }