Example #1
0
        private void StockWindow_Shown(object sender, EventArgs e)
        {
            frmStockList                 = new StockList();
            frmStockList.WindowState     = FormWindowState.Maximized;
            frmStockList.FormBorderStyle = FormBorderStyle.None;
            frmStockList.TopLevel        = false;

            currentForm       = frmStockList;
            frmStockList.Size = pnlWindow.Size;
            pnlWindow.Controls.Clear();
            pnlWindow.Controls.Add(frmStockList);
            frmStockList.Show();
        }
Example #2
0
        private void btnStock_Click(object sender, EventArgs e)
        {
            ApplicationDesign.SetSubSubButtonDesign(ref sender);
            frmStockList                 = new StockList();
            frmStockList.WindowState     = FormWindowState.Maximized;
            frmStockList.FormBorderStyle = FormBorderStyle.None;
            frmStockList.TopLevel        = false;

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