Example #1
0
 /// <summary>
 /// 点击钉子按钮时触发的事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void pb_dingzi_Click(object sender, EventArgs e)
 {
     WinForm.WFgongzuoqingdan mywinform = new WinForm.WFgongzuoqingdan();
     if (mywinform.ShowDialog() == DialogResult.OK)
     {
         JJMethod.a_shuaxinzhuye(null, null);
     }
 }
Example #2
0
 private void lbl_gongzuoqingdan_Click(object sender, EventArgs e)
 {
     WinForm.WFgongzuoqingdan mywinform = new WinForm.WFgongzuoqingdan()
     {
         StartPosition = FormStartPosition.CenterParent,
         WindowState   = FormWindowState.Maximized
     };
     mywinform.TopMost   = true;
     mywinform.MdiParent = this.ParentForm;
     panel_task.Controls.Add(mywinform);
     mywinform.Show();
 }