public LoginWindow()
 {
     InitializeComponent();
     _restApiClient = NinjectContainer.Container.Get <IRestApiClient>();
     _restApiClient.SetDefaultUrl(Properties.Settings.Default.DefaultRestApiAddress);
     #region events
     KeyDown += new KeyEventHandler(KeyDownEventHandler);
     #endregion events
 }
 public MainWindowViewController(IRestApiClient restApiClient)
 {
     _restApiClient = restApiClient;
     _restApiClient.SetDefaultUrl(Properties.Settings.Default.DefaultRestApiAddress);
     Initialize();
     ProductViewModels.CollectionChanged          += ProductsCollectionChanged;
     AllActiveUsers.CollectionChanged             += UsersCollectionChanged;
     InventoryViewModels.CollectionChanged        += InventoryCollectionChanged;
     InventoryProductViewModels.CollectionChanged += InventoryProductCollectionChanged;
 }