/// <summary> /// ctor /// </summary> /// <param name="command"></param> public LocalDataViewCommandViewRefresh(RefreshEventCommand command) : base(command) { clientRecId = command.ClientRecId; UseFirstRecord = false; RefreshMode = command.RefreshMode; CurrentRecordRow = command.CurrentRecordRow; KeepUserSort = command.KeepUserSort; }
/// <summary> /// CTOR /// </summary> /// <param name="command"></param> public LocalDataViewCommandLocate(IClientCommand command) : base(command) { RefreshEventCommand refreshEventCommand = command as RefreshEventCommand; if (refreshEventCommand != null) { clientRecId = refreshEventCommand.ClientRecId; } }
public LocalDataViewCommandSort(ColumnSortEventCommand command) : base(command) { //Prepare Sort collection. Sorts = new SortCollection(); Sort sort = new Sort(); sort.fldIdx = command.FldId; sort.dir = (command.Direction == 0) ? true : false; Sorts.add(sort); RefreshEventCommand refreshCommand = CommandFactory.CreateRealRefreshCommand(command.TaskTag, InternalInterface.MG_ACT_RT_REFRESH_VIEW, 0, null, command.ClientRecId); localDataViewCommandViewRefresh = new LocalDataViewCommandViewRefresh(refreshCommand); localDataViewCommandViewRefresh.RefreshMode = ViewRefreshMode.CurrentLocation; localDataViewCommandViewRefresh.KeepUserSort = true; }