예제 #1
0
        public ClientEditViewModel(ILog log, IDispatcherSchedulerProvider scheduler, IStandardDialog standardDialog,
                                   IToolBarService toolBarService, BindableCollection<IToolBarItem> toolBarCollection,
                                   IClientEditService service, ClientModel model, BindableCollection<string> genderCollection)
            : base(log, scheduler, standardDialog)
        {
            _service = service;

            ToolBarItems = toolBarCollection;

            Model = model;
            Model.AddDisposable(Disposables);

            Genders = genderCollection;

            CreateSaveToolBar(toolBarService);
            CreateCancelToolBar(toolBarService);
        }
예제 #2
0
        public ClientEditViewModel(ILog log, IDispatcherSchedulerProvider scheduler, IStandardDialog standardDialog,
                                   IToolBarService toolBarService, BindableCollection <IToolBarItem> toolBarCollection,
                                   IClientEditService service, ClientModel model, BindableCollection <string> genderCollection)
            : base(log, scheduler, standardDialog)
        {
            _service = service;

            ToolBarItems = toolBarCollection;

            Model = model;
            Model.AddDisposable(Disposables);

            Genders = genderCollection;

            CreateSaveToolBar(toolBarService);
            CreateCancelToolBar(toolBarService);
        }