private void saleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frm = new frmSale();

            frm.MdiParent   = this;
            frm.WindowState = FormWindowState.Maximized;

            frm.Show();
        }
예제 #2
0
 private void salesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (sale.IsDisposed)
     {
         sale = new frmSale();
     }
     sale.MdiParent = this;
     sale.Show();
     sale.BringToFront();
 }
        private void SaleButton_Click_1(object sender, EventArgs e)
        {
            panel.Controls.Clear();
            frmSale frm = new frmSale();

            frm.FormBorderStyle = FormBorderStyle.None;
            frm.TopLevel        = false;
            frm.AutoScroll      = true;
            frm.Dock            = DockStyle.Fill;
            panel.Controls.Add(frm);
            frm.Show();
        }