コード例 #1
0
        private void SalesWindows_Shown(object sender, EventArgs e)
        {
            frmInvoiceWindow                 = new InvoiceWindow();
            frmInvoiceWindow.WindowState     = FormWindowState.Maximized;
            frmInvoiceWindow.FormBorderStyle = FormBorderStyle.None;
            frmInvoiceWindow.TopLevel        = false;

            currentForm           = frmInvoiceWindow;
            frmInvoiceWindow.Size = pnlWindow.Size;
            pnlWindow.Controls.Clear();
            pnlWindow.Controls.Add(frmInvoiceWindow);
            frmInvoiceWindow.Show();
        }
コード例 #2
0
        private void btnInvoice_Click(object sender, EventArgs e)
        {
            ApplicationDesign.SetSubButtonDesign(ref sender);

            frmInvoiceWindow                 = new InvoiceWindow();
            frmInvoiceWindow.WindowState     = FormWindowState.Maximized;
            frmInvoiceWindow.FormBorderStyle = FormBorderStyle.None;
            frmInvoiceWindow.TopLevel        = false;

            currentForm           = frmInvoiceWindow;
            frmInvoiceWindow.Size = pnlWindow.Size;
            pnlWindow.Controls.Clear();
            pnlWindow.Controls.Add(frmInvoiceWindow);
            frmInvoiceWindow.Show();
        }