private void toolStripMenuItemViewSend_Click(object sender, EventArgs e) { if (formDataSend == null || formDataSend.IsDisposed) { formDataSend = new FormSendData(); formDataSend.Show(this.dpMain); } else { formDataSend.Activate(); } }
private void toolStripMenuItemViewSend_Click(object sender, EventArgs e) { if (formDataSend == null || formDataSend.IsDisposed) { formDataSend = new FormSendData(); formDataSend.MdiParent = this; formDataSend.StartPosition = FormStartPosition.Manual; formDataSend.Location = new Point(this.ClientSize.Width / 2 - 100, 0); formDataSend.Size = new Size(this.ClientSize.Width / 2, this.ClientSize.Height / 2); formDataSend.Show(); } else { formDataSend.Activate(); } }