Пример #1
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            WindowState      = FormWindowState.Maximized;
            panel_index.Dock = DockStyle.Fill;
            string scanMode = ConfigurationManager.AppSettings["scanMode"];

            if (scanMode == "image")
            {
                frmIndex frmIndex = new frmIndex();
                frmIndex.TopLevel        = false;
                frmIndex.FormBorderStyle = FormBorderStyle.None;
                frmIndex.Dock            = DockStyle.Fill;
                frmIndex.Parent          = panel_index;
                frmIndex.Show();
            }
            else
            {
                frmVatInvoice frmVatInvoice = new frmVatInvoice();
                frmVatInvoice.TopLevel        = false;
                frmVatInvoice.FormBorderStyle = FormBorderStyle.None;
                frmVatInvoice.Dock            = DockStyle.Fill;
                frmVatInvoice.Parent          = panel_index;
                frmVatInvoice.Show();
            }
        }
Пример #2
0
        private void ts_Invoice_Click(object sender, EventArgs e)
        {
            this.panel_index.Controls.Clear();
            frmVatInvoice frmVatInvoice = new frmVatInvoice();

            frmVatInvoice.TopLevel        = false;
            frmVatInvoice.FormBorderStyle = FormBorderStyle.None;
            frmVatInvoice.Dock            = DockStyle.Fill;
            frmVatInvoice.Parent          = this.panel_index;
            frmVatInvoice.Show();
        }