private void gridMain_DoubleClick(object sender,EventArgs e) { if(!_isEditable) { return; } FormGradingScaleItemEdit FormGSIE=new FormGradingScaleItemEdit(_listGradingScaleItems[gridMain.GetSelectedIndex()]); FormGSIE.ShowDialog(); FillGrid(); }
private void butAdd_Click(object sender, EventArgs e) { GradingScaleItem gradingScaleItemNew = new GradingScaleItem(); gradingScaleItemNew.GradingScaleNum = _gradingScaleCur.GradingScaleNum; //Must be set prior to edit window being open if a new item. gradingScaleItemNew.IsNew = true; FormGradingScaleItemEdit FormGSIE = new FormGradingScaleItemEdit(gradingScaleItemNew); FormGSIE.ShowDialog(); FillGrid(); }
private void gridMain_DoubleClick(object sender, EventArgs e) { if (!_isEditable) { return; } FormGradingScaleItemEdit FormGSIE = new FormGradingScaleItemEdit(_listGradingScaleItems[gridMain.GetSelectedIndex()]); FormGSIE.ShowDialog(); FillGrid(); }
private void butAdd_Click(object sender,EventArgs e) { GradingScaleItem gradingScaleItemNew=new GradingScaleItem(); gradingScaleItemNew.GradingScaleNum=_gradingScaleCur.GradingScaleNum;//Must be set prior to edit window being open if a new item. gradingScaleItemNew.IsNew=true; FormGradingScaleItemEdit FormGSIE=new FormGradingScaleItemEdit(gradingScaleItemNew); FormGSIE.ShowDialog(); FillGrid(); }