public Commands(ISynchronizationContextProvider syncContext, IVmObject vmObject, IDialogService dialogService, IDataService dataService) { this.vmObject = vmObject; this.dialogService = dialogService; this.dataService = dataService; this.scheduler = new SynchronizationContextScheduler(syncContext.SynchronizationContext); this.syncContext = syncContext; DoNothingCommand = CreateCommand(DoNothing); NextCurrentRowCommand = CreateCommand <object>(NextCurrentRow); PrevCurrentRowCommand = CreateCommand <object>(PrevCurrentRow); ToEndElementCommand = CreateCommand <object>(ToEndElement); ToFirstElementCommand = CreateCommand <object>(ToFirstElement); StartOrPausePlayCommand = CreateCommand <object>(StartOrPausePlay); OpenXmlForTableCreationCommand = CreateCommand(OpenFileForDataCreation); SaveXmlFromTableCommand = CreateCommand(SaveXmlFromTable); ShowHelpInformationCommand = CreateCommand <object>(ShowHelpInformation); UpdateCurrentRowCommand = CreateCommand <object>(UpdateCurrentRow); AddViewModelCommand = CreateCommand <object>(AddViewModel); AddPreviouslySelectedViewModelCommand = CreateCommand <object>(AddPreviouslySelectedViewModel); ConnectAsTcpClientCommand = CreateCommand <object>(RunConnectAsTcpClient); TestCommand = CreateCommand <object>(Test); RemoveViewModelCommand = CreateCommand(RemoveViewModel); }
public Commands(ISynchronizationContextProvider syncContext, IVmObject vmObject, IDialogService dialogService, IDataService dataService) { this.vmObject = vmObject; this.dialogService = dialogService; this.dataService = dataService; this.scheduler = new SynchronizationContextScheduler(syncContext.SynchronizationContext); this.syncContext = syncContext; DoNothingCommand = CreateCommand <object>(DoNothing); OpenFolderCommand = CreateCommand(OpenFolder); }
public IVmObject Set(string name, IVmObject val) { Store[name] = val; return(val); }