예제 #1
0
        private void gridAttached_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            if (hasChanged)
            {
                MsgBox.Show(this, "Not allowed to edit individual requirements immediately after adding or removing.");
                return;
            }
            FormReqStudentEdit FormRSE = new FormReqStudentEdit();

            FormRSE.ReqCur = ReqStudents.GetOne(PIn.PInt(TableAttached.Rows[e.Row]["ReqStudentNum"].ToString()));
            FormRSE.ShowDialog();
            if (FormRSE.DialogResult != DialogResult.OK)
            {
                return;
            }
            TableAttached = ReqStudents.GetForAppt(AptNum);
            FillAttached();
        }
예제 #2
0
        private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            //if(IsSelectionMode){
            //	if(table.Rows[e.Row]["appointment"].ToString()!=""){
            //		MsgBox.Show(this,"Already attached to an appointment.");
            //		return;
            //	}
            //	SelectedReqStudentNum=PIn.PInt(table.Rows[e.Row]["ReqStudentNum"].ToString());
            //	DialogResult=DialogResult.OK;
            //}
            //else{
            FormReqStudentEdit FormRSE = new FormReqStudentEdit();

            FormRSE.ReqCur = ReqStudents.GetOne(PIn.Long(table.Rows[e.Row]["ReqStudentNum"].ToString()));
            FormRSE.ShowDialog();
            if (FormRSE.DialogResult != DialogResult.OK)
            {
                return;
            }
            FillGrid();
            //}
        }