private void BtnInvoices_Click(object sender, EventArgs e)
        {
            if (!AdminAdministrator.Instance.PnlContainer.Controls.ContainsKey("AdminInvoices"))
            {
                AdminInvoices inv = new AdminInvoices();
                inv.Dock = DockStyle.Fill;
                AdminAdministrator.Instance.PnlContainer.Controls.Add(inv);

                inv.ShowAllInvoices();
                inv.PopulateCustomerNameCombobox();
            }
            AdminAdministrator.Instance.PnlContainer.Controls["AdminInvoices"].BringToFront();
            AdminAdministrator.Instance.BackButton.Visible = true;
        }
Exemplo n.º 2
0
        private void BtnBackToInvoice_Click(object sender, EventArgs e)
        {
            AdminAdministrator.Instance.PnlContainer.Controls.Clear();
            if (!AdminAdministrator.Instance.PnlContainer.Controls.ContainsKey("AdminInvoices"))
            {
                AdminInvoices inv = new AdminInvoices();
                inv.Dock = DockStyle.Fill;
                AdminAdministrator.Instance.PnlContainer.Controls.Add(inv);

                inv.ShowAllInvoices();
            }
            AdminAdministrator.Instance.PnlContainer.Controls["AdminInvoices"].BringToFront();
            AdminAdministrator.Instance.BackButton.Visible = true;
            BtnBackToInvoice.Visible = false;
        }