private void butPick_Click(object sender,EventArgs e) { FormFamilyMemberSelect FormF=new FormFamilyMemberSelect(_fam); FormF.ShowDialog(); if(FormF.DialogResult!=DialogResult.OK) { return; } _guardianCur.PatNumGuardian=FormF.SelectedPatNum; textFamilyMember.Text=_fam.GetNameInFamFL(_guardianCur.PatNumGuardian); }
private void butPick_Click(object sender, EventArgs e) { FormFamilyMemberSelect FormF = new FormFamilyMemberSelect(Fam); FormF.ShowDialog(); if (FormF.DialogResult != DialogResult.OK) { return; } GuardianCur.PatNumGuardian = FormF.SelectedPatNum; textGuardian.Text = Fam.GetNameInFamFL(GuardianCur.PatNumGuardian); }
private void butPickResponsParty_Click(object sender,EventArgs e) { FormFamilyMemberSelect FormF=new FormFamilyMemberSelect(FamCur); FormF.ShowDialog(); if(FormF.DialogResult!=DialogResult.OK) { return; } PatCur.ResponsParty=FormF.SelectedPatNum; textResponsParty.Text=Patients.GetLim(PatCur.ResponsParty).GetNameLF(); }
private void butChange_Click(object sender,EventArgs e) { if(!Security.IsAuthorized(Permissions.InsPlanChangeSubsc)) { return; } try { InsSubs.ValidateNoKeys(SubCur.InsSubNum,false); if(!MsgBox.Show(this,MsgBoxButtons.OKCancel,"Change subscriber? This should not normally be needed.")) { return; } } catch(Exception ex){ if(PrefC.GetBool(PrefName.SubscriberAllowChangeAlways)) { DialogResult dres=MessageBox.Show(Lan.g(this,"Warning! Do not change unless fixing database corruption. ")+"\r\n"+ex.Message); if(dres!=DialogResult.OK) { return; } } else { MessageBox.Show(Lan.g(this,"Not allowed to change.")+"\r\n"+ex.Message); return; } } Family fam=Patients.GetFamily(PatPlanCur.PatNum); FormFamilyMemberSelect FormF=new FormFamilyMemberSelect(fam); FormF.ShowDialog(); if(FormF.DialogResult!=DialogResult.OK) { return; } SubCur.Subscriber=FormF.SelectedPatNum; Patient subsc=Patients.GetLim(FormF.SelectedPatNum); textSubscriber.Text=subsc.GetNameLF(); textSubscriberID.Text=subsc.SSN; }