/// <summary> /// contructor /// </summary> /// <param name="dataViewOutputCommand"></param> public RemoteDataViewToDataSourceCommand(DataViewOutputCommand dataViewOutputCommand) : base(dataViewOutputCommand) { this.dataViewOutputCommand = dataViewOutputCommand; currTask = (TaskBase)MGDataCollection.Instance.GetTaskByID(dataViewOutputCommand.TaskTag); ancestorTask = GuiExpressionEvaluator.GetContextTask((TaskBase)currTask, dataViewOutputCommand.Generation); destinationDataSourceDefinition = ClientManager.Instance.LocalManager.ApplicationDefinitions.DataSourceDefinitionManager.GetDataSourceDefinition(ancestorTask.getCtlIdx(), dataViewOutputCommand.DestinationDataSourceNumber); }
/// <summary> /// ctor /// </summary> /// <param name="command"></param> public LocalDataViewOutputCommandBase(DataViewOutputCommand dataViewOutputCommand) : base(dataViewOutputCommand) { command = dataViewOutputCommand; Task currtask = (Task)MGDataCollection.Instance.GetTaskByID(dataViewOutputCommand.TaskTag); task = (Task)GuiExpressionEvaluator.GetContextTask((TaskBase)currtask, dataViewOutputCommand.Generation); }