Ejemplo n.º 1
0
        public EditInformation()
        {
            InitializeComponent();



            ucCashiers cashierUC = new ucCashiers(listCashier);

            panel1.Controls.Clear();
            panel1.Controls.Add(cashierUC);
        }
Ejemplo n.º 2
0
        private void BtCashier_Click(object sender, EventArgs e)
        {
            RunAsync();
            label2.Text = "Cashier information";
            ucCashiers cashierUC = new ucCashiers(listCashier);

            panel1.Controls.Clear();
            int n = 0;

            for (int i = 1; i <= listCashier.Count; i++)
            {
                n = cashierUC.dgvCashier.Rows.Add();
                cashierUC.dgvCashier.Rows[n].Cells[0].Value = i;
                cashierUC.dgvCashier.Rows[n].Cells[1].Value = listCashier[i - 1].full_name;
                cashierUC.dgvCashier.Rows[n].Cells[2].Value = listCashier[i - 1].email;
            }
            panel1.Controls.Add(cashierUC);
        }