示例#1
0
 private void differenceButton_Click(object sender, EventArgs e)
 {
     TakeBoxes(_left.Matrix, _leftBoxes);
     TakeBoxes(_right.Matrix, _rightBoxes);
     _result = _left.Diff(_right.Matrix);
     RefreshResultBoxes();
     if (_left is TimeDecorator timeDecorator)
     {
         timeLabel.Text = timeDecorator.Time + " ms";
     }
 }
 /// <summary>
 /// Calls Diff method of MatrixFacade instance.
 /// </summary>
 /// <param name="other">Other matrix to be subtracted from this.</param>
 /// <returns>New matrix that equals to substraction of this and other matrixes.</returns>
 public virtual Matrix Diff(Matrix other)
 {
     return(_facade.Diff(other));
 }