public static ReductProducts GetInstance(Employee employee) { if (State == null) { State = new ReductProducts(employee); } if (State.employee.Id != employee.Id) { State = new ReductProducts(employee); } return(State); }
private void ChangeProduct_Click(object sender, RoutedEventArgs e) { ProductsObserverWorkSpace.Content = ReductProducts.GetInstance(employee); }