public ExcelCellDiff(int columnIndex, int rowIndex, ExcelCell src, ExcelCell dst, ExcelCellStatus status) { ColumnIndex = columnIndex; RowIndex = rowIndex; SrcCell = src; DstCell = dst; Status = status; }
public ExcelCellDiff(int columnIndex, int rowIndex, ExcelCell src, ExcelCell dst, ExcelCellStatus status, ExcelCellMergeStatus mergeStatus = ExcelCellMergeStatus.None) { ColumnIndex = columnIndex; RowIndex = rowIndex; SrcCell = src; DstCell = dst; Status = status; MergeStatus = mergeStatus; }
public ExcelCell(string value, int originalColumnIndex, int originalRowIndex) { Value = value; OriginalColumnIndex = originalColumnIndex; OriginalRowIndex = originalRowIndex; Status = ExcelCellStatus.Empty; if (value != null && value.Length > 0) { Status = ExcelCellStatus.Filled; } }
private Color?GetColor(ExcelCellStatus status) { switch (status) { case ExcelCellStatus.Modified: return(App.Instance.Setting.ModifiedColor); case ExcelCellStatus.Added: return(App.Instance.Setting.AddedColor); case ExcelCellStatus.Removed: return(App.Instance.Setting.RemovedColor); } return(null); }
public ExcelCellDiff CreateCell(ExcelCell src, ExcelCell dst, int columnIndex, ExcelCellStatus status) { var cell = new ExcelCellDiff(columnIndex, Index, src, dst, status); Cells.Add(cell.ColumnIndex, cell); return(cell); }
public void SetStatus(ExcelCellStatus status) { Status = status; }