automatically clear the Most Recently Used list if opening a different database than last time (don’t prompt with dialog box)

This commit is contained in:
John Jenko 2012-06-12 15:20:29 +00:00
parent 8cc07a788f
commit a23d075403

View File

@ -186,8 +186,12 @@ namespace VEPROMS
throw new Exception("Inconsistent Formats"); throw new Exception("Inconsistent Formats");
if (!ItemAuditInfo.IsChangeManagerVersion()) if (!ItemAuditInfo.IsChangeManagerVersion())
throw new Exception("Inconsistent Data"); throw new Exception("Inconsistent Data");
Properties.Settings.Default.DefaultDB = Database.SelectedDatabase; if (Database.LastDatabase != Database.SelectedDatabase)
Properties.Settings.Default.Save(); {
Properties.Settings.Default.MRIList = null;
Properties.Settings.Default.DefaultDB = Database.SelectedDatabase;
Properties.Settings.Default.Save();
}
VETreeNode tn = VETreeNode.GetFolder(1); VETreeNode tn = VETreeNode.GetFolder(1);
tv.Nodes.Add(tn); tv.Nodes.Add(tn);
tv.NodePSI += new vlnTreeViewPSIEvent(tv_NodePSI); tv.NodePSI += new vlnTreeViewPSIEvent(tv_NodePSI);