Ejemplo n.º 1
0
        private void bnListStockBelowTH_Click(object sender, EventArgs e)
        {
            ListDialog listDialog = new ListDialog();

            while (control.ScarceCheck() != null)
            {
                listDialog.AddDisplayItems(control.ScarceCheck().ToString());
            }
            listDialog.ShowDialog();
        }
Ejemplo n.º 2
0
        private void bnListAllStock_Click(object sender, EventArgs e)
        {
            ListDialog listDialog = new ListDialog();

            Stock[] temp = new Stock[control.Stock.Count];
            temp = control.Stock.ToArray();
            for (int i = 0; i < temp.Length; i++)
            {
                listDialog.AddDisplayItems(temp[i].ToString());
            }
            listDialog.ShowDialog();
        }
Ejemplo n.º 3
0
        private void bnListOutstandingOrders_Click(object sender, EventArgs e)
        {
            // the following lines are to instruct you how to use ListDialog.
            // You should replace the following code with yours
            ListDialog listDialog = new ListDialog();

            listDialog.AddDisplayItems("This is a test", "You can write any number of arguments,",
                                       "to pass to AddDisplayItems");
            object[] displayObjects =
            {
                "You can also pass object[],",
                "which contains any number of objects"
            };
            listDialog.AddDisplayItems(displayObjects);
            listDialog.AddDisplayItems("You can call AddDisplayItems as many times as you want");
            listDialog.AddDisplayItems("Each invocation adds lines to be displayed");
            listDialog.AddDisplayItems("By the way, did you know that ToString() of string returns its string component");
            listDialog.ShowDialog();
        }
Ejemplo n.º 4
0
 private void bnBalance_Click(object sender, EventArgs e)
 {
     ListDialog listDialog = new ListDialog();
     listDialog.AddDisplayItems(syst.listTransactions());
     listDialog.ShowDialog();
 }
Ejemplo n.º 5
0
        private void bnTotal_Click(object sender, EventArgs e)
        {
            if (currentTransaction == null) MessageBox.Show("No current Transaction");
            else
            {
                currentTransaction.executeTransaction();

                List<string> sl = currentTransaction.displayItems();
                if (sl != null)
                {
                    ListDialog listDialog = new ListDialog();
                    listDialog.AddDisplayItems(sl.ToArray());
                    listDialog.ShowDialog();

                    syst.addTransaction(currentTransaction);
                }
                currentTransaction = null;
            }

            tbName.Text = "";
            tbPrice.Text = "";
        }
Ejemplo n.º 6
0
 private void Console_Load(object sender, EventArgs e)
 {
     consoleController = new ConsoleController(this);
     listDialog        = new ListDialog();
 }
Ejemplo n.º 7
0
 private void Till_Load(object sender, EventArgs e)
 {
     tillController = new TillController(this);
     listDialog     = new ListDialog();
 }
Ejemplo n.º 8
0
 private void bnListOutstandingOrders_Click(object sender, EventArgs e)
 {
     ListDialog listDialog = new ListDialog();
     listDialog.AddDisplayItems(syst.listOrders());
     listDialog.ShowDialog();
 }
Ejemplo n.º 9
0
        private void btnListAllSuppliers_Click(object sender, EventArgs e)
        {
            ListDialog ld = new ListDialog();

            ld.Show();
        }
Ejemplo n.º 10
0
 private void bnListAllSuppliers_Click(object sender, EventArgs e)
 {
     ListDialog listDialog = new ListDialog();
     listDialog.AddDisplayItems(syst.listSuppliers());
     listDialog.ShowDialog();
 }
Ejemplo n.º 11
0
 private void bnListStockBelowTH_Click(object sender, EventArgs e)
 {
     ListDialog listDialog = new ListDialog();
     listDialog.AddDisplayItems(syst.listScarceStock());
     listDialog.ShowDialog();
 }
Ejemplo n.º 12
0
 private void bnListAllStock_Click(object sender, EventArgs e)
 {
     ListDialog listDialog = new ListDialog();
     Stock[] temp = new Stock[control.Stock.Count];
     temp = control.Stock.ToArray();
     for (int i = 0; i < temp.Length; i++)
     {
         listDialog.AddDisplayItems(temp[i].ToString());
     }
     listDialog.ShowDialog();
 }
Ejemplo n.º 13
0
        private void bnListStockBelowTH_Click(object sender, EventArgs e)
        {
            ListDialog listDialog = new ListDialog();
            while (control.ScarceCheck() != null)
            {
                listDialog.AddDisplayItems(control.ScarceCheck().ToString());

            }
            listDialog.ShowDialog();
        }
Ejemplo n.º 14
0
 private void bnListOutstandingOrders_Click(object sender, EventArgs e)
 {
     // the following lines are to instruct you how to use ListDialog.
     // You should replace the following code with yours
     ListDialog listDialog = new ListDialog();
     listDialog.AddDisplayItems("This is a test", "You can write any number of arguments,",
         "to pass to AddDisplayItems");
     object[] displayObjects= {
                                  "You can also pass object[],",
                                  "which contains any number of objects"
                              };
     listDialog.AddDisplayItems(displayObjects);
     listDialog.AddDisplayItems("You can call AddDisplayItems as many times as you want");
     listDialog.AddDisplayItems("Each invocation adds lines to be displayed");
     listDialog.AddDisplayItems("By the way, did you know that ToString() of string returns its string component");
     listDialog.ShowDialog();
 }