Exemple #1
0
		private void butAdd_Click(object sender,EventArgs e) {
			GradingScale gradingScaleNew=new GradingScale();
			gradingScaleNew.GradingScaleNum=GradingScales.Insert(gradingScaleNew);
			gradingScaleNew.IsNew=true;
			FormGradingScaleEdit FormGSE=new FormGradingScaleEdit(gradingScaleNew);
			FormGSE.ShowDialog();
			FillGrid();
		}
Exemple #2
0
		private void gridMain_DoubleClick(object sender,EventArgs e) {
			if(IsSelectionMode) {
				SelectedGradingScale=_listGradingScales[gridMain.GetSelectedIndex()];
				DialogResult=DialogResult.OK;
				return;
			}
			FormGradingScaleEdit FormGSE=new FormGradingScaleEdit(_listGradingScales[gridMain.GetSelectedIndex()]);
			FormGSE.ShowDialog();
			FillGrid();
		}
        private void butAdd_Click(object sender, EventArgs e)
        {
            GradingScale gradingScaleNew = new GradingScale();

            gradingScaleNew.GradingScaleNum = GradingScales.Insert(gradingScaleNew);
            gradingScaleNew.IsNew           = true;
            FormGradingScaleEdit FormGSE = new FormGradingScaleEdit(gradingScaleNew);

            FormGSE.ShowDialog();
            FillGrid();
        }
        private void gridMain_DoubleClick(object sender, EventArgs e)
        {
            if (IsSelectionMode)
            {
                SelectedGradingScale = _listGradingScales[gridMain.GetSelectedIndex()];
                DialogResult         = DialogResult.OK;
                return;
            }
            FormGradingScaleEdit FormGSE = new FormGradingScaleEdit(_listGradingScales[gridMain.GetSelectedIndex()]);

            FormGSE.ShowDialog();
            FillGrid();
        }