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