private void UpdateLaborCoeffsTable()
 {
     dgvLaborCoeffs.Rows.Clear();
     foreach (var coeff in _model.LaborCoeffs)
     {
         dgvLaborCoeffs.Rows.Add(coeff.Name, LaborCoeffLevelConverter.Convert(coeff.Level));
     }
 }
        private void DgvLaborCoeffs_CellEndEdit(object sender, DataGridViewCellEventArgs e)
        {
            PerformAction(() =>
            {
                foreach (DataGridViewRow row in dgvLaborCoeffs.Rows)
                {
                    var name = (string)row.Cells["dgvLaborCoeffsName"].Value;

                    var coeff   = _model.LaborCoeffs[name];
                    coeff.Level = LaborCoeffLevelConverter
                                  .Convert((string)row.Cells["dgvLaborCoeffsValue"].Value);

                    _model.LaborCoeffs[name] = coeff;
                }
                PerformCalculations();
            });
        }