/// <summary> /// Calls LoadFromDb method of MatrixFacade instance. /// </summary> /// <param name="id">Id of record.</param> public virtual void LoadFromDb(string id) { try { _facade.LoadFromDb(id); } catch { throw; } }
private void loadFromDbButton2_Click(object sender, EventArgs e) { try { _right.LoadFromDb(loadBox2.Text); } catch (Exception ex) { Console.WriteLine(ex.Message); } RefreshBoxes(_right.Matrix, _rightBoxes); if (_right is TimeDecorator timeDecorator) { timeLabel.Text = timeDecorator.Time + " ms"; } }