Exemplo n.º 1
0
        private void toolStripMenuItemViewReceive_Click(object sender, EventArgs e)
        {
            if (formDataReceive == null || formDataReceive.IsDisposed)
            {
                formDataReceive = new FormReceiveData();

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