public static OpenCloseOrder GetInstance(Employee empl) { //if (State == null) // State = new OpenCloseOrder(empl); //if (State.employee.Id != empl.Id) State = new OpenCloseOrder(empl); return(State); }
private void ShowOrdersToCenter_Click(object sender, RoutedEventArgs e) { WorkingArea.Content = OpenCloseOrder.GetInstance(employee); }