public FrmStockInPrintPreview(FrmReports port)
        {
            InitializeComponent();
            cn = new SqlConnection(dbcon.MyConnection());

            rep = port;
        }
Exemplo n.º 2
0
        //Sales Records Button
        private void materialFlatButton6_Click(object sender, EventArgs e)
        {
            FrmReports rep = new FrmReports();

            rep.Size     = Container.Size;
            rep.TopLevel = false;
            Container.Controls.Clear();
            Container.Controls.Add(rep);
            MngtProductsPanel.Visible  = false;              //Should not to see the product management
            MngtDashboardPanel.Visible = false;              //Should see the Dashboard settings
            MngtCustomerPanel.Visible  = false;              //Should not see the Customer management settings
            MngtSales.Visible          = true;               //Should see the Sub report module
            materialDivider3.Visible   = false;              //Indicator is off
            materialDivider4.Visible   = false;              //Indicator is off
            materialDivider5.Visible   = false;              //Indicator is off
            materialDivider6.Visible   = true;               //Indicator is on
            rep.BringToFront();
            rep.Show();
        }