C2013-005 – Allow user to change the procedure panel’s title

This commit is contained in:
2013-03-27 14:37:53 +00:00
parent 9709fbac59
commit 8680480492
7 changed files with 281 additions and 280 deletions

View File

@@ -543,6 +543,16 @@ namespace VEPROMS
// after printing procedures. The following lines kills the process immediately.
System.Diagnostics.Process.GetCurrentProcess().Kill();
}
// Get the "Procedures" Panel Heading (title).
// by default the heading is "Procedures" (handled in the getting from the config)
// the heading is stored in the "title" field of the folder config.
// we currently only use the "title" field for the top (VEPROMS) tree node.
private string getProcedurePanelHeading()
{
VETreeNode jj_vetn = (VETreeNode)tv.Nodes[0]; // the VEPROMS tree node
return ((FolderConfig)jj_vetn.VEObject.MyConfig).Title; // get the panel heading
}
private void frmVEPROMS_Load(object sender, EventArgs e)
{
//string debugMode = ConfigurationManager.AppSettings["Debug"];
@@ -566,6 +576,9 @@ namespace VEPROMS
tv.SelectedNode.Expand();
SetCaption(tv.SelectedNode as VETreeNode);
}
// Assign the Procedure Panel's title (heading)
epProcedures.TitleText = getProcedurePanelHeading();// get the panel heading
displaySearch1.SetupAnnotationSearch(ctrlAnnotationDetails, tc);
AnnotationTypeInfoList.ListChanged += new AnnotationTypeInfoListEvent(AnnotationTypeInfoList_ListChanged);
ctrlAnnotationDetails.SetupAnnotations(displaySearch1);
@@ -962,6 +975,8 @@ namespace VEPROMS
{
frmFolderProperties frmfld = new frmFolderProperties(args.FolderConfig);
dr = frmfld.ShowDialog();
if (dr == DialogResult.OK)
epProcedures.TitleText = getProcedurePanelHeading();// get the panel heading
}
else if (args.DocVersionConfig != null)
{