Exemple #1
0
        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);
        }
Exemple #2
0
 private void ChangeProduct_Click(object sender, RoutedEventArgs e)
 {
     ProductsObserverWorkSpace.Content = ReductProducts.GetInstance(employee);
 }