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 = reqsAttached[e.Row]; FormRSE.ShowDialog(); if (FormRSE.DialogResult != DialogResult.OK) { return; } reqsAttached = ReqStudents.GetForAppt(AptNum); FillAttached(); }
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(); //} }
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=reqsAttached[e.Row]; FormRSE.ShowDialog(); if(FormRSE.DialogResult!=DialogResult.OK) { return; } reqsAttached=ReqStudents.GetForAppt(AptNum); FillAttached(); }
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(); //} }