コード例 #1
0
 private void Initialize()
 {
     RunCommand        = new RunCommand(this);
     ChooseFileCommand = new ChooseFileCommand(this);
     ideaServices      = new ideaServices();
     chosenFile        = ideaServices.GetOpenDataBase();
 }
コード例 #2
0
 private void RaiseCommandsCanExecute()
 {
     SignCommand.RaiseCanExecuteChanged();
     BuildCommand.RaiseCanExecuteChanged();
     ChooseFileCommand.RaiseCanExecuteChanged();
     ChooseFolderCommand.RaiseCanExecuteChanged();
     InstallFrameworkCommand.RaiseCanExecuteChanged();
     ShowSearchWindowCommand.RaiseCanExecuteChanged();
 }
コード例 #3
0
 public NotificationModel()
 {
     ProcessFileCommand         = new ProcessFileCommand(this);
     ChooseCountryFolderCommand = new ChooseCountryFolderCommand(this);
     ChooseFileCommand          = new ChooseFileCommand(this);
     FilePathLabel          = StringConsts.FilePathLabelConst;
     FileProcessingLabel    = StringConsts.FileProcessingLabelConst;
     CountryFolderPathLabel = StringConsts.CountryFolderPathLabelConst;
 }
コード例 #4
0
 public MainViewModel()
 {
     ProcessFileCommand         = new ProcessFileCommand(this);
     ChooseCountryFolderCommand = new ChooseCountryFolderCommand(this);
     ChooseFileCommand          = new ChooseFileCommand(this);
     FilePathLabel           = StringConsts.FilePathLabelConst;
     FileProcessingLabel     = StringConsts.FileProcessingLabelConst;
     CountryFolderPathLabel  = StringConsts.CountryFolderPathLabelConst;
     FileProcessingLabelData = string.Empty;
 }
コード例 #5
0
 public YahooScraperViewModel()
 {
     ProcessFileCommand         = new ProcessFileCommand(this);
     ChooseCountryFolderCommand = new ChooseFolderForStoringCommand(this);
     ChooseFileCommand          = new ChooseFileCommand(this);
     FilePathLabel              = StringConsts.FilePathLabelConst;
     FileProcessingLabel        = StringConsts.FileProcessingLabelConst;
     FolderForStoringFilesLabel = StringConsts.CountryFolderPathLabelConst;
     FileProcessingLabelData    = string.Empty;
     DateFromLabel              = StringConsts.DateFromLabelConst;
     DateToLabel      = StringConsts.DateToLabelConst;
     SelectedDateFrom = DateTime.Now;
     SelectedDateTo   = DateTime.Now;
 }
コード例 #6
0
		public void Execute_ParamsIsNotHeapObjectList_DoNothing()
		{
			var chooseFileCommand = new ChooseFileCommand(() => ExtendedDebuggerFactorySpy, () => new OpenDumpFileDialogStub(), DumpFileNotFoundAlertSpy);
			chooseFileCommand.Execute(new object());
			Assert.False(ExtendedDebuggerFactorySpy.Executed);
		}