コード例 #1
0
 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);
 }
コード例 #2
0
 public ZlecenieProdukcyjneTowarBase(IViewModelService viewModelService)
     : base(viewModelService)
 {
     ListOfVMEntities = new ObservableCollection <tblProdukcjaZlecenieTowar>();
     Messenger.Register <ProdukcjaZlecenieDodajTowarMessage>(this, GdyPrzeslanoDodajMessage);
     Messenger.Register <tblProdukcjaZlecenieTowar>(this, GdyPrzeslanoTowar);
 }
コード例 #3
0
 public MagazynEwidencjaSubiektViewModel(IViewModelService viewModelService,
                                         IMagazynEwidencjaSubiektUCViewModel magazynEwidencjaUC
                                         )
     : base(viewModelService)
 {
     MagazynEwidencjaUC = magazynEwidencjaUC;
 }
コード例 #4
0
        private static InstallationResultViewModel CreateSkippedResult(IViewModelService viewModelService, InstallerViewModel installerViewModel)
        {
            var installationResultViewModel = viewModelService.CreateViewModel <InstallationResultViewModel>(installerViewModel);

            installationResultViewModel.State = InstallationResultState.Skipped;
            return(installationResultViewModel);
        }
コード例 #5
0
 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";
 }
コード例 #6
0
 public ListAddEditDeleteCommandViewModelBase(IViewModelService viewModelService) : base(viewModelService)
 {
     LoadCommand   = new RelayCommand(LoadCommandExecute);
     AddCommand    = new RelayCommand(AddCommandExecute);
     EditCommand   = new RelayCommand(EditCommandExecute, EditCommandCanExecute);
     DeleteCommand = new RelayCommand(DeleteCommandExecute, DeleteCommandCanExecute);
 }
コード例 #7
0
ファイル: HomeController.cs プロジェクト: Warez-VD/MeetMe
        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;
        }
コード例 #8
0
        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
        }
コード例 #9
0
        public ZlecenieCieciaTowarViewModel_old(IViewModelService viewModelService) : base(viewModelService)
        {
            DodajTowarCommand  = new RelayCommand(DodajTowarCommandExecute);
            UsunTowarCommand   = new RelayCommand(UsunTowarCommandExecute);
            EdytujTowarCommand = new RelayCommand(EdytujTowarCommandExecute);

            Messenger.Register <ProdukcjaZlecenieDodajTowarMessage>(this, GdyPrzeslanoZlecenieCieciaTowar);
        }
コード例 #10
0
 public UserService(DataContext dataContext, UserManager <AppUser> userManager, IViewModelService viewModelService,
                    IHttpContextAccessor httpContextAccessor)
 {
     _dataContext         = dataContext;
     _userManager         = userManager;
     _viewModelService    = viewModelService;
     _httpContextAccessor = httpContextAccessor;
 }
コード例 #11
0
 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);
 }
コード例 #12
0
ファイル: MyFollowingVM.cs プロジェクト: huoyaoyuan/EHunter
        public MyFollowingVM(ICustomResolver <PixivClient> clientResolver,
                             IViewModelService viewModelService)
        {
            _clientResolver   = clientResolver;
            _viewModelService = viewModelService;

            Refresh();
        }
コード例 #13
0
        public LinkableViewModel(IColorService colorService, IViewModelService viewModelService)
        {
            _colorService      = colorService;
            _viewModelService  = viewModelService;
            SelectedColorGroup = _colorService.GetDefaultColorGroup();

            IoC.Get <IEventBroker>().Subscribe(this);
        }
コード例 #14
0
        public ZlecenieCieciaEwidencjaViewModel(IViewModelService viewModelService)
            : base(viewModelService)
        {
            EdytujCommand = new RelayCommand(EdytujCommandExecute);
            DodajCommand  = new RelayCommand(DodajCommandExecute);

            Messenger.Register <tblProdukcjaZlecenieCiecia>(this, GdyPrzeslanoZlecenieCiecia);
        }
コード例 #15
0
        public AddEditCommandGenericViewModelBase(IViewModelService viewModelService) : base(viewModelService)
        {
            SaveCommand        = new RelayCommand(SaveCommandExecute, SaveCommandCanExecute);
            LoadCommand        = new RelayCommand(LoadCommandExecute);
            CloseWindowCommand = new RelayCommand <CancelEventArgs>(CloseWindowCommandExecute);

            RegisterMessengers();
        }
コード例 #16
0
        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);
        }
コード例 #17
0
        public DodajKontrahentaViewModel(IViewModelService viewModelService,
                                         IPobierzDaneKontrahentaZGUS pobierzDaneKontrahentaZGUS)
            : base(viewModelService)
        {
            this.pobierzDaneKontrahentaZGUS = pobierzDaneKontrahentaZGUS;

            GetDataFromGUSCommand         = new RelayCommand(GetDataFromGUSExecute, GetDataFromGUSCanExecute);
            kontrahentNipValidationHelper = new KontrahentNipValidationHelper();
        }
コード例 #18
0
 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));
 }
コード例 #19
0
 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();
        }
コード例 #21
0
ファイル: ProfileController.cs プロジェクト: WillB01/chat-app
 public ProfileController(IUserService userService, IViewModelService viewModelService, IProfileImageService profileImageService,
                          IFriendService friendService, IHostingEnvironment hostingEnvironment)
 {
     _userService         = userService;
     _viewModelService    = viewModelService;
     _profileImageService = profileImageService;
     _friendService       = friendService;
     _hostingEnvironment  = hostingEnvironment;
 }
コード例 #22
0
 public CommonSettingVM(ICommonSettingStore settingStore, CommonSetting commonSetting, IViewModelService viewModelService)
 {
     _storageRoot        = settingStore.StorageRoot;
     _proxyAddress       = settingStore.ProxyAddress;
     _proxyPort          = settingStore.ProxyPort;
     _dbConnectionString = settingStore.DbConnectionString;
     _commonSetting      = commonSetting;
     _viewModelService   = viewModelService;
 }
コード例 #23
0
        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);
        }
コード例 #24
0
 public ProductsController(IProductService productService,
                           ICookieService cookieService,
                           IHttpContextAccessor httpContextAccessor,
                           IViewModelService viewModelService)
 {
     _productService      = productService;
     _cookieService       = cookieService;
     _httpContextAccessor = httpContextAccessor;
     _viewModelService    = viewModelService;
 }
コード例 #25
0
        public GPRuchTowarRWViewModel(IViewModelService viewModelService,
                                      IGPRuchTowar_RW_Helper rwHelper)
            : base(viewModelService)
        {
            this.rwHelper = rwHelper;

            RozchodujRolkeCommand = new RelayCommand(RozchodujRolkeCommandExecute);

            RegisterMessengers();
        }
コード例 #26
0
        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();
        }
コード例 #28
0
        public RozliczenieMsAccessEwidencjaViewModel(IViewModelService viewModelService,
                                                     IRozliczenieMsAccessEwidencjaDeleteHelper deleteHelper)
            : base(viewModelService)
        {
            this.deleteHelper = deleteHelper;

            SearchCommand = new RelayCommand(SearchCommandExecute);

            filtrHelper = new RozliczenieMsAccessEwidencjaFiltrHelper();
        }
コード例 #29
0
        public LiniaWlokninBadaniaViewModel(IViewModelService viewModelService,
                                            IWeryfikacjaTolerancji weryfikacjaTolerancji)
            : base(viewModelService)
        {
            this.weryfikacjaTolerancji = weryfikacjaTolerancji;

            Badanie    = new tblProdukcjaGniazdoWlokninaBadania();
            BadanieOrg = Badanie.DeepClone();

            Messenger.Register <tblProdukcjaZlecenie>(this, GdyPrzeslanoAktywneZlecenieProdykcyjne);
        }
コード例 #30
0
        public DodajCenyTransferoweViewModel(IViewModelService viewModelService,
                                             IXlsService xlsService)
            : base(viewModelService)
        {
            this.xlsService = xlsService;

            DodajCenyTransferoweZPlikuXls = new RelayCommand(DodajCenyTransferoweZPlikuXlsExecute);
            ZmienDateCommand = new RelayCommand(ZmienDateCommandExecute, ZmienDateCommandCanExecute);

            ListaZmienionychCenOrg = ListaZmienionychCen.DeepClone();
        }
コード例 #31
0
ファイル: HomeController.cs プロジェクト: Tamzoid/UniSite
 public HomeController(IViewModelService service, IConfigLoader<IWebConfig> loader)
     : base(loader)
 {
     _service = service;
 }
コード例 #32
0
ファイル: HomeController.cs プロジェクト: juanjardim/fishTank
 public HomeController(IViewModelService viewModelService)
 {
     this.viewModelService = viewModelService;
 }
コード例 #33
0
 public ManufacturingController(IViewModelService vmService)
 {
     _vmService = vmService;
 }
コード例 #34
0
 public BlueprintController(IViewModelService vmService)
 {
     _vmService = vmService;
 }