Exemple #1
0
 private void L1PC_Click(object sender, EventArgs e)
 {
     if (((dataMatrix[2, 3] == 1) || (dataMatrix[1, 3] == 1)) && (dataMatrix[3, 3] == 1))
     {
         Point    pos;
         LeftLoad LeftLoadForm1 = new LeftLoad();
         LeftLoadForm1.Text = "Left Load 1";
         LeftLoadForm1.chnl_num(0x08);
         LeftLoadForm1.StartPosition = FormStartPosition.Manual;
         pos    = MousePosition;
         pos.X += -50;
         pos.Y += -50;
         LeftLoadForm1.Show();
     }
 }
Exemple #2
0
 private void LeftCont_Click(object sender, EventArgs e)
 {
     if ((dataMatrix[2, 3] == 1) || (dataMatrix[1, 3] == 1))
     {
         event_sequence(3, false);
         Point    pos;
         LeftLoad LeftContactor = new LeftLoad();
         LeftContactor.chnl_num(0x00);
         LeftContactor.StartPosition = FormStartPosition.Manual;
         pos    = MousePosition;
         pos.X += -50;
         pos.Y += -50;
         // LeftContactor.Location = pos;
         LeftContactor.Show();
     }
 }
Exemple #3
0
 private void L5PC_Click(object sender, EventArgs e)
 {
     if (((dataMatrix[2, 3] == 1) || (dataMatrix[1, 3] == 1)) && (dataMatrix[3, 3] == 1))
     {
         Point    pos;
         LeftLoad LEftLoadForm5 = new LeftLoad();
         LEftLoadForm5.chnl_num(0x05);
         LEftLoadForm5.StartPosition = FormStartPosition.Manual;
         LEftLoadForm5.Text          = "Left Load 5";
         pos    = MousePosition;
         pos.X += -50;
         pos.Y += -50;
         //LEftLoadForm5.Location = pos;
         LEftLoadForm5.Show();
     }
 }