private void Initialize() { RunCommand = new RunCommand(this); ChooseFileCommand = new ChooseFileCommand(this); ideaServices = new ideaServices(); chosenFile = ideaServices.GetOpenDataBase(); }
private void RaiseCommandsCanExecute() { SignCommand.RaiseCanExecuteChanged(); BuildCommand.RaiseCanExecuteChanged(); ChooseFileCommand.RaiseCanExecuteChanged(); ChooseFolderCommand.RaiseCanExecuteChanged(); InstallFrameworkCommand.RaiseCanExecuteChanged(); ShowSearchWindowCommand.RaiseCanExecuteChanged(); }
public NotificationModel() { ProcessFileCommand = new ProcessFileCommand(this); ChooseCountryFolderCommand = new ChooseCountryFolderCommand(this); ChooseFileCommand = new ChooseFileCommand(this); FilePathLabel = StringConsts.FilePathLabelConst; FileProcessingLabel = StringConsts.FileProcessingLabelConst; CountryFolderPathLabel = StringConsts.CountryFolderPathLabelConst; }
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; }
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; }
public void Execute_ParamsIsNotHeapObjectList_DoNothing() { var chooseFileCommand = new ChooseFileCommand(() => ExtendedDebuggerFactorySpy, () => new OpenDumpFileDialogStub(), DumpFileNotFoundAlertSpy); chooseFileCommand.Execute(new object()); Assert.False(ExtendedDebuggerFactorySpy.Executed); }