private void InitBorderPartModels() { this._topBorder = new XMLBorderPartModel(this._border.Top, this._palette); this._bottomBorder = new XMLBorderPartModel(this._border.Bottom, this._palette); this._leftBorder = new XMLBorderPartModel(this._border.Left, this._palette); this._rightBorder = new XMLBorderPartModel(this._border.Right, this._palette); this._diagonalBorder = new XMLBorderPartModel(this._border.Diagonal, this._palette); }
public override int GetHashCode() { int num = 0; num ^= this._border.DiagonalDown_Attr.GetHashCode(); num ^= this._border.DiagonalUp_Attr.GetHashCode(); num ^= this._border.Outline_Attr.GetHashCode(); num ^= new XMLBorderPartModel(this._border.Bottom, this._palette).GetHashCode(); num ^= new XMLBorderPartModel(this._border.Top, this._palette).GetHashCode(); num ^= new XMLBorderPartModel(this._border.Left, this._palette).GetHashCode(); num ^= new XMLBorderPartModel(this._border.Right, this._palette).GetHashCode(); return(num ^ new XMLBorderPartModel(this._border.Diagonal, this._palette).GetHashCode()); }