public SaveCommandGenericViewModelBase(IViewModelService viewModelService) : base(viewModelService) { SaveCommand = new RelayCommand(SaveCommandExecute, SaveCommandCanExecute); DeleteCommand = new RelayCommand(DeleteCommandExecute, DeleteCommandCanExecute); LoadCommand = new RelayCommand(LoadCommandExecute); CloseWindowCommand = new RelayCommand <CancelEventArgs>(CloseWindowCommandExecute); }
public ZlecenieProdukcyjneTowarBase(IViewModelService viewModelService) : base(viewModelService) { ListOfVMEntities = new ObservableCollection <tblProdukcjaZlecenieTowar>(); Messenger.Register <ProdukcjaZlecenieDodajTowarMessage>(this, GdyPrzeslanoDodajMessage); Messenger.Register <tblProdukcjaZlecenieTowar>(this, GdyPrzeslanoTowar); }
public MagazynEwidencjaSubiektViewModel(IViewModelService viewModelService, IMagazynEwidencjaSubiektUCViewModel magazynEwidencjaUC ) : base(viewModelService) { MagazynEwidencjaUC = magazynEwidencjaUC; }
private static InstallationResultViewModel CreateSkippedResult(IViewModelService viewModelService, InstallerViewModel installerViewModel) { var installationResultViewModel = viewModelService.CreateViewModel <InstallationResultViewModel>(installerViewModel); installationResultViewModel.State = InstallationResultState.Skipped; return(installationResultViewModel); }
public DodajPrzerobProdukcjaGeokomorkaViewModel(IViewModelService viewModelService) : base(viewModelService) { VMEntity.DataOd = DateTime.Now.Date.StartOfWeek(DayOfWeek.Monday); VMEntity.DataDo = DateTime.Now.Date; VMEntityBaseToCompare = VMEntity.DeepClone(); Title = "Produkcja geokomĂłki - przerĂłb w datach"; }
public ListAddEditDeleteCommandViewModelBase(IViewModelService viewModelService) : base(viewModelService) { LoadCommand = new RelayCommand(LoadCommandExecute); AddCommand = new RelayCommand(AddCommandExecute); EditCommand = new RelayCommand(EditCommandExecute, EditCommandCanExecute); DeleteCommand = new RelayCommand(DeleteCommandExecute, DeleteCommandCanExecute); }
public HomeController( IAccountService accountService, IUserService userService, IStatisticService statisticService, IViewModelService viewModelService, ISignInManager signInManager, IUserManager userManager, IIdentityHelper identityHelper) { Guard.WhenArgument(accountService, "AccountService").IsNull().Throw(); Guard.WhenArgument(userService, "UserService").IsNull().Throw(); Guard.WhenArgument(statisticService, "StatisticService").IsNull().Throw(); Guard.WhenArgument(viewModelService, "ViewModelService").IsNull().Throw(); Guard.WhenArgument(signInManager, "SignInManager").IsNull().Throw(); Guard.WhenArgument(userManager, "UserManager").IsNull().Throw(); Guard.WhenArgument(identityHelper, "IdentityHelper").IsNull().Throw(); this.accountService = accountService; this.userService = userService; this.statisticService = statisticService; this.viewModelService = viewModelService; this.signInManager = signInManager; this.userManager = userManager; this.identityHelper = identityHelper; }
public MainMenuBarViewModel(IViewModelService viewModelService, IThemeChangerHelper themeChangerHelper) : base(viewModelService) { this.themeChangerHelper = themeChangerHelper; ZamknijAplikacjeCommand = new RelayCommand <CancelEventArgs>(ZamknijAplikacjeCommandExecute); #region MaterialDesingThemes ZmienKolorCommand = new RelayCommand <object>(ZmienKolorCommandExecute); Task.Run(() => themeChangerHelper.SetThemeFromDB()); #endregion OtworzZapotrzebowanieEwidencjaCommand = new RelayCommand(OtworzZapotrzebowanieEwidencjaCommandExecute); OtworzEwidencjeRozliczenZapotrzebowanCommand = new RelayCommand(OtworzEwidencjeRozliczenZapotrzebowanCommandExecute); DodajZapotrzebowanieCommand = new RelayCommand(DodajZapotrzebowanieCommandExecute); OtworzAnalizeZapotrzebowanCommand = new RelayCommand(OtworzAnalizeZapotrzebowanCommandExecute); OtworzEwidencjeBadanCommand = new RelayCommand(OtworzEwidencjeBadanCommandExecute); DodajBadanieCommand = new RelayCommand(DodajBadanieCommandExecute); PokazEwidencjeKontrahentowCommand = new RelayCommand(PokazEwidencjeKontrahentowCommandExecute); DodajKontrahentaCommand = new RelayCommand(DodajKontrahentaCommandExecute); OtworzDrukowanieEtykietCommand = new RelayCommand(OtworzDrukowanieEtykietCommandExecute); #region Magazyn OtworzPrzyjecieZewnetrzneCommand = new RelayCommand(OtworzPrzyjecieZewnetrzneCommandExecute); OtworzStanMagazynowyCommand = new RelayCommand(OtworzStanMagazynowyCommandExecute); OtworzEwidencjeRuchuTowarowCommand = new RelayCommand(OtworzEwidencjeRuchuTowarowCommandExecute); OtworzRuchTowaruCommand = new RelayCommand <string>(OtworzRuchTowaruCommandExecute); OtowrzMagazynEwidencjaSubiektCommand = new RelayCommand(OtowrzMagazynEwidencjaSubiektCommandExecute); #endregion #region Produkcja RejestracjaProdukcjiOtworOknoCommand = new RelayCommand <object>(RejestracjaProdukcjiOtworOknoCommandExecute); OtworzZlecenieCommand = new RelayCommand <object>(OtworzZlecenieCommandExecute); OtworzEwidencjeProdukcjiCommand = new RelayCommand(OtworzEwidencjeProdukcjiCommandExecute); OtworzZamowienieOdKlientowCommand = new RelayCommand(OtworzZamowienieOdKlientowCommandExecute); OtworzEwidencjeRozliczenProdukcjiCommand = new RelayCommand(OtworzEwidencjeRozliczenProdukcjiCommandExecute); OtworzEwidencjeCenTransfeorwychCommand = new RelayCommand(OtworzEwidencjeCenTransfeorwychCommandExecute); OtworzEwidencjePrzerobuGokomorkiCommand = new RelayCommand(OtworzEwidencjePrzerobuGokomorkiCommandExecute); #endregion #region Finanse OtworzNaleznosciIZobowiazaniaCommand = new RelayCommand(OtworzNaleznosciIZobowiazaniaCommandExecute); OtworzEwidencjeSprzedazyAGGCommand = new RelayCommand(OtworzEwidencjeSprzedazyAGGCommandExecute); OtworzEwidencjeStanuKontCommand = new RelayCommand(OtworzEwidencjeStanuKontCommandExecute); OtworzPodsumowanieFinansoweCommand = new RelayCommand(OtworzPodsumowanieFinansoweCommandExecute); #endregion #region Konfiguracja OtworzKonfiguracjeUrzadzenCommand = new RelayCommand(OtworzKonfiguracjeUrzadzenCommandExecute); #endregion }
public ZlecenieCieciaTowarViewModel_old(IViewModelService viewModelService) : base(viewModelService) { DodajTowarCommand = new RelayCommand(DodajTowarCommandExecute); UsunTowarCommand = new RelayCommand(UsunTowarCommandExecute); EdytujTowarCommand = new RelayCommand(EdytujTowarCommandExecute); Messenger.Register <ProdukcjaZlecenieDodajTowarMessage>(this, GdyPrzeslanoZlecenieCieciaTowar); }
public UserService(DataContext dataContext, UserManager <AppUser> userManager, IViewModelService viewModelService, IHttpContextAccessor httpContextAccessor) { _dataContext = dataContext; _userManager = userManager; _viewModelService = viewModelService; _httpContextAccessor = httpContextAccessor; }
public BacktestBrowserViewModel(IColorService colorService, IViewModelService viewModelService) : base(colorService, viewModelService) { BacktestGroups = new BindableCollection <BacktestGroupRecord>(); Backtests = new BindableCollection <ResponseSessionRecord>(); BacktestGroupView = CollectionViewSource.GetDefaultView(BacktestGroups); BacktestView = CollectionViewSource.GetDefaultView(Backtests); }
public MyFollowingVM(ICustomResolver <PixivClient> clientResolver, IViewModelService viewModelService) { _clientResolver = clientResolver; _viewModelService = viewModelService; Refresh(); }
public LinkableViewModel(IColorService colorService, IViewModelService viewModelService) { _colorService = colorService; _viewModelService = viewModelService; SelectedColorGroup = _colorService.GetDefaultColorGroup(); IoC.Get <IEventBroker>().Subscribe(this); }
public ZlecenieCieciaEwidencjaViewModel(IViewModelService viewModelService) : base(viewModelService) { EdytujCommand = new RelayCommand(EdytujCommandExecute); DodajCommand = new RelayCommand(DodajCommandExecute); Messenger.Register <tblProdukcjaZlecenieCiecia>(this, GdyPrzeslanoZlecenieCiecia); }
public AddEditCommandGenericViewModelBase(IViewModelService viewModelService) : base(viewModelService) { SaveCommand = new RelayCommand(SaveCommandExecute, SaveCommandCanExecute); LoadCommand = new RelayCommand(LoadCommandExecute); CloseWindowCommand = new RelayCommand <CancelEventArgs>(CloseWindowCommandExecute); RegisterMessengers(); }
private static InstallationResultViewModel CreateInstallationFailedResult(IViewModelService viewModelService, InstallerViewModel installerViewModel, Exception exception) { var installationResultViewModel = viewModelService.CreateViewModel <InstallationResultViewModel>(installerViewModel); installationResultViewModel.State = InstallationResultState.InstallationFailed; installationResultViewModel.Exception = viewModelService.CreateViewModel <ExceptionViewModel>(installationResultViewModel, exception); return(installationResultViewModel); }
public DodajKontrahentaViewModel(IViewModelService viewModelService, IPobierzDaneKontrahentaZGUS pobierzDaneKontrahentaZGUS) : base(viewModelService) { this.pobierzDaneKontrahentaZGUS = pobierzDaneKontrahentaZGUS; GetDataFromGUSCommand = new RelayCommand(GetDataFromGUSExecute, GetDataFromGUSCanExecute); kontrahentNipValidationHelper = new KontrahentNipValidationHelper(); }
public InstallApplicationCommand(IDialogService dialogService, IViewModelService viewModelService, IInstallService installService, INotificationService notificationService, IUriService uriService, string downloadFolderPath) { _dialogService = dialogService ?? throw new ArgumentNullException(nameof(dialogService)); _viewModelService = viewModelService ?? throw new ArgumentNullException(nameof(viewModelService)); _installService = installService ?? throw new ArgumentNullException(nameof(installService)); _notificationService = notificationService ?? throw new ArgumentNullException(nameof(notificationService)); _uriService = uriService ?? throw new ArgumentNullException(nameof(uriService)); _downloadFolderPath = !String.IsNullOrEmpty(downloadFolderPath) ? downloadFolderPath : throw new ArgumentNullException(nameof(downloadFolderPath)); }
public ViewModelServiceBase(IViewModelService viewModelService) { UnitOfWork = viewModelService.UnitOfWork; UnitOfWorkFactory = viewModelService.UnitOfWorkFactory; ViewService = viewModelService.ViewService; DialogService = viewModelService.DialogService; Messenger = viewModelService.Messenger; ActivityLogger = viewModelService.ActivityLogger; }
public ListAddEditDeleteMethodGenericViewModelBase(IViewModelService viewModelService) : base(viewModelService) { AddCommand = new RelayCommand(AddCommandExecute, AddCommandCanExecute); EditCommand = new RelayCommand(EditCommandExecute, EditCommandCanExecute); DeleteCommand = new RelayCommand(DeleteCommandExecute, DeleteCommandCanExecute); MessengerRegistration(); }
public ProfileController(IUserService userService, IViewModelService viewModelService, IProfileImageService profileImageService, IFriendService friendService, IHostingEnvironment hostingEnvironment) { _userService = userService; _viewModelService = viewModelService; _profileImageService = profileImageService; _friendService = friendService; _hostingEnvironment = hostingEnvironment; }
public CommonSettingVM(ICommonSettingStore settingStore, CommonSetting commonSetting, IViewModelService viewModelService) { _storageRoot = settingStore.StorageRoot; _proxyAddress = settingStore.ProxyAddress; _proxyPort = settingStore.ProxyPort; _dbConnectionString = settingStore.DbConnectionString; _commonSetting = commonSetting; _viewModelService = viewModelService; }
public ZlecenieProdukcyjneTowarViewModel(IViewModelService viewModelService) : base(viewModelService) { DodajDoLiniiWlokninCommand = new RelayCommand(DodajDoLiniiWlokninCommandExecute); DodajDoLiniiKalandraCommand = new RelayCommand(DodajDoLiniiKalandraCommandExecute); EdytujTowarLiniiWlokninCommand = new RelayCommand(EdytujTowarLiniiWlokninCommandExecute, EdytujTowarLiniiWlokninCommandCanExecute); EdytujTowarLiniiKalandraCommand = new RelayCommand(EdytujTowarLiniiKalandraCommandExecute, EdytujTowarLiniiKalandraCommandCanExecute); Messenger.Register <ProdukcjaZlecenieDodajTowarMessage>(this, GdyPrzeslanoDodajMessage); }
public ProductsController(IProductService productService, ICookieService cookieService, IHttpContextAccessor httpContextAccessor, IViewModelService viewModelService) { _productService = productService; _cookieService = cookieService; _httpContextAccessor = httpContextAccessor; _viewModelService = viewModelService; }
public GPRuchTowarRWViewModel(IViewModelService viewModelService, IGPRuchTowar_RW_Helper rwHelper) : base(viewModelService) { this.rwHelper = rwHelper; RozchodujRolkeCommand = new RelayCommand(RozchodujRolkeCommandExecute); RegisterMessengers(); }
public MagazynStanTowaruViewModel(IViewModelService viewModelService) : base(viewModelService) { WyslijTowarMessengeremCommand = new RelayCommand(WyslijTowarMessengeremCommandExecute); ZmianaElementuNaTreeViewCommand = new RelayCommand(ZmianaElementuNaTreeViewCommandExecute); Tytul = "Stan magazynu"; Messenger.Register <vwMagazynGTX>(this, GdyPrzeslanoMagazyn); }
public ListAddEditDeleteCommandGenericViewModelBase(IViewModelService viewModelService) : base(viewModelService) { LoadCommand = new RelayCommand(LoadCommandExecute); AddCommand = new RelayCommand(AddCommandExecute); EditCommand = new RelayCommand(EditCommandExecute, EditCommandCanExecute); DeleteCommand = new RelayCommand(DeleteCommandExecute, DeleteCommandCanExecute); RegisterMessengers(); }
public RozliczenieMsAccessEwidencjaViewModel(IViewModelService viewModelService, IRozliczenieMsAccessEwidencjaDeleteHelper deleteHelper) : base(viewModelService) { this.deleteHelper = deleteHelper; SearchCommand = new RelayCommand(SearchCommandExecute); filtrHelper = new RozliczenieMsAccessEwidencjaFiltrHelper(); }
public LiniaWlokninBadaniaViewModel(IViewModelService viewModelService, IWeryfikacjaTolerancji weryfikacjaTolerancji) : base(viewModelService) { this.weryfikacjaTolerancji = weryfikacjaTolerancji; Badanie = new tblProdukcjaGniazdoWlokninaBadania(); BadanieOrg = Badanie.DeepClone(); Messenger.Register <tblProdukcjaZlecenie>(this, GdyPrzeslanoAktywneZlecenieProdykcyjne); }
public DodajCenyTransferoweViewModel(IViewModelService viewModelService, IXlsService xlsService) : base(viewModelService) { this.xlsService = xlsService; DodajCenyTransferoweZPlikuXls = new RelayCommand(DodajCenyTransferoweZPlikuXlsExecute); ZmienDateCommand = new RelayCommand(ZmienDateCommandExecute, ZmienDateCommandCanExecute); ListaZmienionychCenOrg = ListaZmienionychCen.DeepClone(); }
public HomeController(IViewModelService service, IConfigLoader<IWebConfig> loader) : base(loader) { _service = service; }
public HomeController(IViewModelService viewModelService) { this.viewModelService = viewModelService; }
public ManufacturingController(IViewModelService vmService) { _vmService = vmService; }
public BlueprintController(IViewModelService vmService) { _vmService = vmService; }