Ejemplo n.º 1
0
        public AdminAddCustomer(AdminCustomer Clist)
        {
            InitializeComponent();
            cn     = new SqlConnection(dbcon.MyConnection());
            CSlist = Clist;

            this.KeyPreview = true;
        }
Ejemplo n.º 2
0
        public AdminCustomerInvoices(AdminCustomer per)
        {
            InitializeComponent();
            cn = new SqlConnection(dbcon.MyConnection());

            customer = per;

            ShowInvoiceByCustomer();
        }
Ejemplo n.º 3
0
        private void BtnCustomers_Click(object sender, EventArgs e)
        {
            if (!AdminAdministrator.Instance.PnlContainer.Controls.ContainsKey("AdminCustomer"))
            {
                AdminCustomer cust = new AdminCustomer();
                cust.Dock = DockStyle.Fill;
                AdminAdministrator.Instance.PnlContainer.Controls.Add(cust);

                cust.ShowCustomersInformation();
            }
            AdminAdministrator.Instance.PnlContainer.Controls["AdminCustomer"].BringToFront();
            AdminAdministrator.Instance.BackButton.Visible = true;
        }
Ejemplo n.º 4
0
        private void BtnCustomers_Click(object sender, EventArgs e)
        {
            if (!AdminAdministrator.Instance.PnlContainer.Controls.ContainsKey("AdminCustomer"))
            {
                AdminCustomer custom = new AdminCustomer();
                custom.Dock = DockStyle.Fill;
                AdminAdministrator.Instance.PnlContainer.Controls.Add(custom);

                // Store the value of username text into PassCanName variable so it can pass to Cancel Invoice
                PassCanName = lblUsername.Text;
                custom.ShowCustomersInformation();
            }
            AdminAdministrator.Instance.PnlContainer.Controls["AdminCustomer"].BringToFront();
            AdminAdministrator.Instance.BackButton.Visible          = true;
            AdminAdministrator.Instance.BackToInvoiceButton.Visible = false;
            AdminAdministrator.Instance.BackToReportsButton.Visible = false;
        }