public AddCustomerView(string animationName)
 {
     InitializeComponent();
     _customersManager = new CustomersManager();
     if (string.IsNullOrEmpty(animationName)) return;
     var animation = (Storyboard)Application.Current.Resources[animationName];
     LayoutRoot.BeginStoryboard(animation);
 }
 public StatisticsView(string animationName)
 {
     InitializeComponent();
     _purchaseClient = new PurchaseClient();
     _orderClient = new OrderClient();
     _productClient = new ProductManger();
     _suppliersManager = new SuppliersManager();
     _customersManager = new CustomersManager();
     if (string.IsNullOrEmpty(animationName)) return;
     Storyboard animation = (Storyboard)Application.Current.Resources[animationName];
     LayoutRoot.BeginStoryboard(animation);
 }
 public ListCustomersView(string animationName, TabHelper hlp)
 {
     InitializeComponent();
     _tabHlp = hlp;
     _customerClient = new CustomersManager();
     _customersManager = new CustomersManager();
     if (!string.IsNullOrEmpty(animationName))
     {
         var animation = (Storyboard)Application.Current.Resources[animationName];
         LayoutRoot.BeginStoryboard(animation);
     }
 }
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     CustomersManager customers = new CustomersManager();
     dgCustomers.ItemsSource = customers.GetCustomers();
 }