Esempio n. 1
0
        private void buttonChangeStatus_Click(object sender, EventArgs e)
        {
            OrderDTO order = new OrderDTO();

            try
            {
                order = _ordersManager.GetOrderById(Convert.ToInt64(textBox1.Text));
            }
            catch
            {
                MessageBox.Show("Incorrect order ID!!!");
                textBox1.Text = "";
                return;
            }
            if (order is null)
            {
                return;
            }
            if (comboBoxStatuses.SelectedIndex == -1)
            {
                MessageBox.Show("No Status Selected!");
                return;
            }


            _ordersManager.ChangeOrderStatus(order.MainOrderID, (short)comboBoxStatuses.SelectedIndex, Program.User_here.UserID);
        }
Esempio n. 2
0
 private void btnOK_Click(object sender, RoutedEventArgs e)
 {
     _ordersManager.ChangeOrderStatus(_id, (short)btnOK.TabIndex, App.User_here.UserID);
 }