public static AdminRequiersTable GetInstance()
 {
     // if (State == null)
     State = new AdminRequiersTable();
     // State.SetContext();
     return(State);
 }
예제 #2
0
 private void RemoveRequier_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (NumberArea.Text == "")
         {
             throw new Exception("Введи Id заказа, который хотите отменить");
         }
         int Id = Convert.ToInt32(NumberArea.Text);
         controller.DelateRequier(Id);
         AdminRequiersTable.GetInstance();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
예제 #3
0
 private void ViewRequier_Click(object sender, RoutedEventArgs e)
 {
     RequiersWorkingArea.Content = AdminRequiersTable.GetInstance();
 }
예제 #4
0
 public AdminRequiers()
 {
     InitializeComponent();
     RequiersWorkingArea.Content = AdminRequiersTable.GetInstance();
 }