public void SaveOrder()
 {
     if (SupplyOrder.AddSupplyOrder(_newOrder))
     {
         MessageBox.Show("Successfully Added", "Information", MessageBoxButton.OK,
                         MessageBoxImage.Information);
         InitializeNewOrder();
         SearchComboBox.Focus();
         NotifyObservers();
     }
     else
     {
         MessageBox.Show("Not Added", "Error", MessageBoxButton.OK,
                         MessageBoxImage.Error);
     }
 }
Ejemplo n.º 2
0
 private void FindSymbolControl_Loaded(object sender, System.Windows.RoutedEventArgs e)
 {
     SearchComboBox.Focus();
 }