Exemplo n.º 1
0
        public override bool Equals(object obj)
        {
            SpreadCalcReference objA = obj as SpreadCalcReference;

            if (object.ReferenceEquals(objA, null))
            {
                return(false);
            }
            return(this.context.Equals(objA.context));
        }
Exemplo n.º 2
0
 public SpreadCalcReference(SpreadCalcReference standaloneCalcRef, ICalcSource context, int row, int column, int rowCount, int columnCount, int sheetRowCount, int sheetColumnCount)
 {
     this.standaloneCalcRef = standaloneCalcRef;
     this.context           = context;
     this.row                           = row;
     this.column                        = column;
     this.rowCount                      = rowCount;
     this.columnCount                   = columnCount;
     this.sheetRowCount                 = sheetRowCount;
     this.sheetColumnCount              = sheetColumnCount;
     standaloneCalcRef.context          = context;
     standaloneCalcRef.row              = 0;
     standaloneCalcRef.column           = 0;
     standaloneCalcRef.rowCount         = sheetRowCount;
     standaloneCalcRef.columnCount      = sheetColumnCount;
     standaloneCalcRef.sheetRowCount    = sheetRowCount;
     standaloneCalcRef.sheetColumnCount = sheetColumnCount;
 }