Example #1
0
 private void Net_Play(object sender, PlayEvent e)
 {
     if (this.InvokeRequired)
     {
         if (e.Mode == 0)
         {
             var n = new remotePlay(NetPlay);
             this.Invoke(n, e.Time, e.Text);
         }
         else if (e.Mode == 1)
         {
             var n = new remotePlay(NetStop);
             this.Invoke(n, e.Time, e.Text);
         }
         else if (e.Mode == 2)
         {
             var n = new updateForm(upform);
             this.Invoke(n, e.Text);
         }
     }
     else
     {
         if (e.Mode == 0)
         {
             NetPlay(e.Time, e.Text);
         }
         else if (e.Mode == 1)
         {
             NetStop(e.Time, e.Text);
         }
     }
 }
Example #2
0
        private void label4_DoubleClick(object sender, EventArgs e)
        {
            PrintMessage($"❤ ❤ ❤ 哇哦居然被发现了 ❤ ❤ ❤");
            PrintMessage($"❤ ❤ ❤ 联系作者QQ694340776 ❤ ❤ ❤");
            updateForm form = new updateForm();

            form.ShowDialog();
        }
Example #3
0
 private void cb_update_Click(object sender, EventArgs e)
 {
     if (Uform == null)
     {
         Uform = new updateForm(this);
     }
     Uform.Show();
 }
Example #4
0
        private void updateToolStripMenuItem_Click(object sender, EventArgs e)
        {
            int    idd    = int.Parse(dataGridView1.CurrentRow.Cells[0].Value.ToString());
            string namee  = dataGridView1.CurrentRow.Cells[1].Value.ToString();
            string pricee = dataGridView1.CurrentRow.Cells[2].Value.ToString();
            string qq     = dataGridView1.CurrentRow.Cells[3].Value.ToString();
            string pic    = dataGridView1.CurrentRow.Cells[4].Value.ToString();

            updateForm uForm = new updateForm(idd, namee, pricee, qq, pic);

            uForm.Show();
        }
Example #5
0
 private void addPictoreBox()
 {
     if (this.InvokeRequired)
     {
         while (!this.IsHandleCreated)
         {
             if (this.Disposing || this.IsDisposed)
             {
                 return;
             }
         }
         updateForm uLEvt = new updateForm(addPictoreBox);
         this.Invoke(uLEvt, new object[] { });
     }
     else
     {
         DrawingInfo Dinfo = CreateCanvase(DrawInfo);
         this.Controls.Add(Dinfo.pbox);
         Dinfo.drawing = new Drawing_RePlay(Dinfo.pbox, angle, m_nDeviceW, m_nDeviceH, 0, 0);
         Dinfo.drawing.DrawingCallbackBrushstroke_Evt += Form_DrawingCallbackBrushstroke;
         drawingDic.Add(DrawInfo, Dinfo);
     }
 }