Hooks request
Posted: Thu Jul 29, 2010 7:08 am
In ClassesShared, after line 192, I want to insert the following:
(You may decide to just add that snippet since it's similar to what's there and just provides methods for jumping to the Chart and Manage modules).
In ContrAppt, I want to add the following after line 1610:
Finally, in ContrAppt, at the bottom, I want to add the following methods:
Thanks,
Code: Select all
public static void GotoChart(long patNum){
OnModuleSelected(new ModuleEventArgs(DateTime.MinValue, new List<long>(), 0, 4, 0, patNum, 0));
}
public static void GotoManage(long patNum){
OnModuleSelected(new ModuleEventArgs(DateTime.MinValue, new List<long>(), 0, 6, 0, patNum, 0));
}In ContrAppt, I want to add the following after line 1610:
Code: Select all
menuApt.MenuItems.Add(Lan.g(this, " Family File"), new EventHandler(menuFamily_Click));
menuApt.MenuItems.Add(Lan.g(this, " Chart"), new EventHandler(menuChart_Click));
menuApt.MenuItems.Add(Lan.g(this, " Account"), new EventHandler(menuAccount_Click));
menuApt.MenuItems.Add(Lan.g(this, " Treatment Plan"), new EventHandler(menuTreatmentPlan_Click));
menuApt.MenuItems.Add(Lan.g(this, " Images"), new EventHandler(menuImages_Click));
menuApt.MenuItems.Add(Lan.g(this, " Manage"), new EventHandler(menuManage_Click));Code: Select all
private void menuFamily_Click(object sender, EventArgs e){
GotoModule.GotoFamily(PatCur.PatNum);
}
private void menuAccount_Click(object sender, EventArgs e){
GotoModule.GotoAccount(PatCur.PatNum);
}
private void menuTreatmentPlan_Click(object sender, EventArgs e){
GotoModule.GotoTreatmentPlan(PatCur.PatNum);
}
private void menuImages_Click(object sender, EventArgs e){
GotoModule.GotoImage(PatCur.PatNum, 0);
} }
public void menuChart_Click(object sender, EventArgs e){
GotoModule.GotoChart(PatCur.PatNum);
}
public void menuManage_Click(object sender, EventArgs e){
GotoModule.GotoManage(PatCur.PatNum);
}