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