public static AdminRequiersTable GetInstance() { // if (State == null) State = new AdminRequiersTable(); // State.SetContext(); return(State); }
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); } }
private void ViewRequier_Click(object sender, RoutedEventArgs e) { RequiersWorkingArea.Content = AdminRequiersTable.GetInstance(); }
public AdminRequiers() { InitializeComponent(); RequiersWorkingArea.Content = AdminRequiersTable.GetInstance(); }