Exemple #1
0
 public void pictureBox_Click(object sender, EventArgs e)
 {
     if (!TestForm.isInstantsShow)
     {
         PictureBox pic = pictureBox;
         maxForm = new TestForm(pic.Parent, pic);
     }
 }
Exemple #2
0
        public TestForm(Control contarget, PictureBox pic)
        {
            instantsClose();
            isInstantsShow = true;
            instants       = this;
            this.pic       = pic;
            parent         = contarget.Parent;
            Size           = new Size(500, 500);
            this.Controls.Add(contarget);
            this.contarget = contarget;

            WindowState = System.Windows.Forms.FormWindowState.Maximized;

            Show();
        }
Exemple #3
0
        public static void OnBroadCallListener(BroadCallInfo mycall)
        {
            elevatorinfo el = ht[mycall.ip] as elevatorinfo;

            if (el == null)
            {
                return;
            }
            if (mycall.e_num == 3)
            {
                boardIP = mycall.ip;
                el.pictureBox_Click(null, null);
                //el.playAlerm();
                QTtool.playWavAudio(Properties.Resources.ALARM3);
                Log.log(el.lbpostion.Text + "呼叫" + "        " + "   " + el.lbnum.Text + "        " + "电梯IP  " + el.MMC_ip);
            }
            else if (mycall.ip == boardIP && mycall.e_num == 1)
            {
                TestForm.instantsClose();
            }
        }
Exemple #4
0
 private void pictureBox_DoubleClick(object sender, EventArgs e)
 {
     TestForm.instantsClose();
 }