Beispiel #1
0
        public static IEditViewModel GetEditView(this IGeneralFacade _IGeneralFacade, AnketaViewModel _anketaViewModel)
        {
            IEditViewModel ievm     = new EditViewModel(_anketaViewModel, _IGeneralFacade.Keeper);
            EditView       editview = new EditView(ievm);

            return(ievm);
        }
Beispiel #2
0
 public AnketaParser(IGeneralFacade _facade)
 {
     Facade = _facade;
     Keeper = Facade.Keeper;
     Reader = Facade.Reader;
     Logger = Facade.Logger;
 }
Beispiel #3
0
        public MainViewModel(IGeneralFacade _facade)
        {
            Facade = _facade;

            CmdSelectFile         = new RelayCommand(SelectFile);
            CmdProcess            = new RelayCommand(ProcessSingleThread);
            CmdProcessMultithread = new RelayCommand(ProcessMultithread);
            CmdStop   = new RelayCommand(Stop);
            CmdRemove = new RelayCommand(Remove);
            CmdAdd    = new RelayCommand(Add);
            CmdChange = new RelayCommand(Change);
            CmdExport = new RelayCommand(Export);
            CmdSet    = new RelayCommand(SetChanges);

            Files     = new ObservableCollection <AnketaFile>();
            RowSource = new ObservableCollection <AnketaViewModel>();

            FileName = @"C:\Work\ToMars\Анкета_000.csv";
            if (GoodConnection())
            {
                InitFormProps();
            }
        }
Beispiel #4
0
 public GeneralController(IGeneralFacade searchFacade)
 {
     _generalFacade = searchFacade ?? throw new ArgumentNullException(nameof(searchFacade));
 }
Beispiel #5
0
 public HomeController(IGeneralFacade _facade)
 {
     _Facade = _facade;
 }