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:
parent
8cc07a788f
commit
a23d075403
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user