private void Add_Click(object sender, RoutedEventArgs e)
 {
     if (IsValid())
     {
         Order.Date       = date.Text;
         Order.Time       = time.SelectionBoxItem.ToString();
         Order.Technician = technicianList.SelectedItem as string;
         FinalOrderPage final = new FinalOrderPage(Order);
         final.Show();
     }
 }
Esempio n. 2
0
        public void ConfirmOrderClicked(object obj)
        {
            if (SelectedTechnician == null)
            {
                MessageBox.Show("Select a technician");
                return;
            }

            Technician technician = SelectedTechnician;

            Order.Technician = technician;
            FinalOrderPage final = new FinalOrderPage(Order, User);

            final.ShowDialog();
        }