private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            FormReqStudentOne FormR = new FormReqStudentOne();

            FormR.ProvNum = PIn.Long(table.Rows[e.Row]["studentNum"].ToString());
            FormR.ShowDialog();
            FillGrid();
        }
Beispiel #2
0
 private void menuItemReqStudents_Click(object sender,EventArgs e)
 {
     Provider prov=Providers.GetProv(Security.CurUser.ProvNum);
     if(prov!=null && prov.SchoolClassNum!=0){//if a student is logged in
         //the student always has permission to view their own requirements
         FormReqStudentOne FormO=new FormReqStudentOne();
         FormO.ProvNum=prov.ProvNum;
         FormO.ShowDialog();
         return;
     }
     if(!Security.IsAuthorized(Permissions.Setup)) {
         return;
     }
     FormReqStudentsMany FormM=new FormReqStudentsMany();
     FormM.ShowDialog();
 }
Beispiel #3
0
		private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) {
			FormReqStudentOne FormR=new FormReqStudentOne();
			FormR.ProvNum=PIn.Long(table.Rows[e.Row]["studentNum"].ToString());
			FormR.ShowDialog();
			FillGrid();
		}
Beispiel #4
0
		private void menuItemReqStudents_Click(object sender,EventArgs e) {
			Provider prov=Providers.GetProv(Security.CurUser.ProvNum);
			if(prov==null) {
				MsgBox.Show(this,"The current user is not attached to a provider. Attach the user to a provider to gain access to this feature.");
				return;
			}
			if(!prov.IsInstructor){//if a student is logged in
				//the student always has permission to view their own requirements
				FormReqStudentOne FormO=new FormReqStudentOne();
				FormO.ProvNum=prov.ProvNum;
				FormO.ShowDialog();
				return;
			}
			if(prov.IsInstructor) {
				FormReqStudentsMany FormM=new FormReqStudentsMany();
				FormM.ShowDialog();
			}
		}