示例#1
0
 void Button8Click(object sender, EventArgs e)
 {
     if (listView2.SelectedIndices.Count > 0)
     {
         AddEditLCDArea d = new AddEditLCDArea(Configuration, listView2.SelectedIndices[0]);
         if (d.ShowDialog(this) == DialogResult.OK)
         {
             ShowAreas();
         }
     }
 }
示例#2
0
        void Button9Click(object sender, EventArgs e)
        {
            if (!Configuration.LCD1.Enabled && !Configuration.LCD2.Enabled)
            {
                MessageBox.Show(this, "Nie można dodać obszaru ponieważ nie włączono żadnego wyświetlacza.", "Uwaga", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }
            AddEditLCDArea d = new AddEditLCDArea(Configuration, -1);

            if (d.ShowDialog(this) == DialogResult.OK)
            {
                ShowAreas();
            }
        }