Added logic to remember the status of the TreeView
Added specific file location for ErrorLog Added logic to refresh ContentParts when Items added or deleted (Error 68)
This commit is contained in:
@@ -226,9 +226,15 @@ 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;
|
||||
epProcedures.Expanded = Settings.Default.TreeviewExpanded;
|
||||
_MyMRIList = MostRecentItemList.GetMRILst((System.Collections.Specialized.StringCollection)(Properties.Settings.Default["MRIList"]));
|
||||
_MyMRIList.AfterRemove += new ItemInfoEvent(_MyMRIList_AfterRemove);
|
||||
SetupMRU();
|
||||
if (epProcedures.Expanded && _MyMRIList.Count > 0)
|
||||
{
|
||||
tv.AdjustTree(_MyMRIList[0].MyItemInfo.MyProcedure);
|
||||
tv.SelectedNode.Expand();
|
||||
}
|
||||
displaySearch1.SetupAnnotationSearch(ctrlAnnotationDetails, tc);
|
||||
ctrlAnnotationDetails.SetupAnnotations(displaySearch1);
|
||||
SetupButtons();
|
||||
@@ -287,6 +293,7 @@ namespace VEPROMS
|
||||
private void SaveMRU()
|
||||
{
|
||||
Properties.Settings.Default.MRIList = _MyMRIList.ToSettings();
|
||||
Properties.Settings.Default.TreeviewExpanded = epProcedures.Expanded;
|
||||
Properties.Settings.Default.Save();
|
||||
}
|
||||
#endregion
|
||||
|
Reference in New Issue
Block a user