/// <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); } }
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(); }