예제 #1
0
        private void Button1_Click(object sender, EventArgs e)
        {
            CheckerItems.HasCheckedOrders(checkedListBox1.CheckedItems.Count);
            var customerManagerPresenter = new CustomerManagerPresenter(this);

            MessageBox.Show(customerManagerPresenter.GetStatusOfOrders());
        }
예제 #2
0
        private void Button3_Click(object sender, EventArgs e)
        {
            CheckerItems.HasCheckedOrders(checkedListBox1.CheckedItems.Count);
            var customerManagerPresenter = new CustomerManagerPresenter(this);

            customerManagerPresenter.AcceptOrders();
            MessageBox.Show("Заказ принят");
        }
예제 #3
0
 private void Button3_Click(object sender, EventArgs e)
 {
     CheckerItems.HasCheckedOrders(checkedListBox1.CheckedItems.Count);
     if (checkedListBox1.CheckedItems.Count > 1)
     {
         MessageBox.Show("Для приходной нужно выбрать только один заказ");
         return;
     }
     presenter = new AccountantPresenter(this);
     presenter.ConfirmReceipt();
     MessageBox.Show("Приходная Оформлена");
 }
예제 #4
0
 private void Button4_Click(object sender, EventArgs e)
 {
     CheckerItems.HasCheckedOrders(checkedListBox1.CheckedItems.Count);
     presenter.CheckPayment();
     MessageBox.Show("Выполняется оплата обработанных заказов");
 }
예제 #5
0
 private void Button2_Click(object sender, EventArgs e)
 {
     CheckerItems.HasCheckedOrders(checkedListBox1.CheckedItems.Count);
     presenter.DeleteOrders();
     MessageBox.Show("Заказы отменены");
 }
예제 #6
0
 private void Button1_Click(object sender, EventArgs e)
 {
     CheckerItems.HasCheckedOrders(checkedListBox1.CheckedItems.Count);
     MessageBox.Show(presenter.GetStatusOfOrders());
 }