private void saveToDbButton2_Click(object sender, EventArgs e) { TakeBoxes(_right.Matrix, _rightBoxes); _right.SaveToDb(saveBox2.Text); if (_right is TimeDecorator timeDecorator) { timeLabel.Text = timeDecorator.Time + " ms"; } }
/// <summary> /// Calls SaveToDb method of MatrixFacade instance. /// </summary> /// <param name="id">Id of record.</param> public virtual void SaveToDb(string id) { _facade.SaveToDb(id); }