コード例 #1
0
 public LoginWindow()
 {
     InitializeComponent();
     _restApiClient = NinjectContainer.Container.Get <IRestApiClient>();
     _restApiClient.SetDefaultUrl(Properties.Settings.Default.DefaultRestApiAddress);
     #region events
     KeyDown += new KeyEventHandler(KeyDownEventHandler);
     #endregion events
 }
コード例 #2
0
 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;
 }