コード例 #1
0
ファイル: FormEvaluationDefs.cs プロジェクト: mnisl/OD
		private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) {
			if(IsSelectionMode) {
				CopyDefToEvaluation();
				DialogResult=DialogResult.OK;
				return;
			}
			EvaluationDef evalDef=EvaluationDefs.GetOne(PIn.Long(gridMain.Rows[gridMain.GetSelectedIndex()].Tag.ToString()));
			FormEvaluationDefEdit FormEDE=new FormEvaluationDefEdit(evalDef);
			FormEDE.ShowDialog();
			FillGrid();
		}
コード例 #2
0
        private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            if (IsSelectionMode)
            {
                CopyDefToEvaluation();
                DialogResult = DialogResult.OK;
                return;
            }
            EvaluationDef         evalDef = EvaluationDefs.GetOne(PIn.Long(gridMain.Rows[gridMain.GetSelectedIndex()].Tag.ToString()));
            FormEvaluationDefEdit FormEDE = new FormEvaluationDefEdit(evalDef);

            FormEDE.ShowDialog();
            FillGrid();
        }
コード例 #3
0
        private void butAdd_Click(object sender, EventArgs e)
        {
            EvaluationDef evalDef = new EvaluationDef();

            evalDef.IsNew            = true;
            evalDef.EvaluationDefNum = EvaluationDefs.Insert(evalDef);
            FormEvaluationDefEdit FormEDE = new FormEvaluationDefEdit(evalDef);

            FormEDE.ShowDialog();
            if (FormEDE.DialogResult == DialogResult.OK)
            {
                FillGrid();
            }
        }
コード例 #4
0
ファイル: FormEvaluationDefs.cs プロジェクト: mnisl/OD
		private void butAdd_Click(object sender,EventArgs e) {
			EvaluationDef evalDef=new EvaluationDef();
			evalDef.IsNew=true;
			evalDef.EvaluationDefNum=EvaluationDefs.Insert(evalDef);
			FormEvaluationDefEdit FormEDE=new FormEvaluationDefEdit(evalDef);
			FormEDE.ShowDialog();
			if(FormEDE.DialogResult==DialogResult.OK) {
				FillGrid();
			}
		}