public void ToLeft(object obj) { if (RightIndex.Equals(-1)) { return; } int index = RightIndex; Model.BlankingRecordRightModel.DataModel model = RightData[RightIndex]; RightData.RemoveAt(RightIndex); if (!RightData.Count.Equals(0)) { RightIndex = index >= RightData.Count ? (RightData.Count - 1) : index; } blankingRecordBLL.GetUpdateBlankingRecordRightResult(ICode, BCode, model.ID); LeftData = ConvertToObservable(blankingRecordBLL.GetBlankingRecordLeftData().Data); }
public void ToLeft(object obj) { if (RightIndex.Equals(-1)) { return; } int index = RightIndex; Models.BlankingRecordRightModel model = RightData[RightIndex]; RightData.RemoveAt(RightIndex); if (!RightData.Count.Equals(0)) { RightIndex = index >= RightData.Count ? (RightData.Count - 1) : index; } blankingRecordBLL.GetUpdateBlankingRecordRightResult(ICode, BCode, model.ID); LeftData = GetLeftData(); UpdateLineNum(); }