public static AdminProductsViewer GetInstance(Employee empl) { if (State == null) { State = new AdminProductsViewer(empl); } return(State); }
private void ViewProducts_Click(object sender, RoutedEventArgs e) { WorkingArea.Content = AdminProductsViewer.GetInstance(employee); }