changed the Tree View checkbox from “Save Expanded” to “Remember Last” and added a tool-tip for a more detailed description

B2013-089 – fixed a bug where you could not resize the Procedure panel unless you closed and re-opened the panel.
This commit is contained in:
2013-05-29 18:05:15 +00:00
parent ba04116c02
commit 8d73cf9974
5 changed files with 140 additions and 165 deletions

View File

@@ -575,7 +575,9 @@ namespace VEPROMS
if (Settings.Default["Location"] != null) this.Location = Settings.Default.Location;
if (Settings.Default["Size"] != null) this.Size = Settings.Default.Size;
if (Settings.Default["WindowState"] != null) this.WindowState = Settings.Default.WindowState;
if (Settings.Default.SaveTreeviewExpanded)epProcedures.Expanded = Settings.Default.TreeviewExpanded;
//if (Settings.Default.SaveTreeviewExpanded) epProcedures.Expanded = Settings.Default.TreeviewExpanded;
// if the Procedures panel was left open from the last session, then open it
epProcedures.Expanded = Settings.Default.TreeviewExpanded;
if (Settings.Default["QATItems"] != null) ribbonControl1.QatLayout = Settings.Default.QATItems;
// See if any database 'changes' need done and do them:
@@ -584,7 +586,10 @@ namespace VEPROMS
_MyMRIList = MostRecentItemList.GetMRILst((System.Collections.Specialized.StringCollection)(Properties.Settings.Default["MRIList"]));
_MyMRIList.AfterRemove += new ItemInfoEvent(_MyMRIList_AfterRemove);
SetupMRU();
if (epProcedures.Expanded && _MyMRIList.Count > 0)
// if the user selected to "Remember Last" (was "Save Expanded") then use the MRU list to
// expand the tree to the last opened procedure
//if (epProcedures.Expanded && _MyMRIList.Count > 0)
if (Settings.Default.SaveTreeviewExpanded && _MyMRIList.Count > 0)
{
tv.AdjustTree(_MyMRIList[0].MyItemInfo.MyProcedure);
tv.SelectedNode.Expand();
@@ -592,6 +597,9 @@ namespace VEPROMS
}
// Assign the Procedure Panel's title (heading)
epProcedures.TitleText = getProcedurePanelHeading();// get the panel heading
// if the procedure panel is expanded, make sure we enable the splitter so the user can resize the panel
// Bug fix: B2013-89
expandableSplitter1.Enabled = epProcedures.Expanded;
displaySearch1.SetupAnnotationSearch(ctrlAnnotationDetails, tc);
AnnotationTypeInfoList.ListChanged += new AnnotationTypeInfoListEvent(AnnotationTypeInfoList_ListChanged);