private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            if (findNodesWindow != null)
            {
                findNodesWindow.ShouldExit = true;
                findNodesWindow.Close();
            }

            //用户没有打开任何数据库文件
            if (curDbInfoTab == null)
            {
                return;
            }
            if (curDbInfoTab.treeView1.IsInEditMode)
            {
                curDbInfoTab.treeView1.SelectedItem.EndEdit();
            }
            SaveDbTabDataToDB(curDbInfoTab);


            //更新配置文件内容
            DatabaseInfo      info         = null;
            TreeViewIconsItem selectedItem = null;

            SystemConfig.configArgus.DbInfos.Clear();
            foreach (var item in DBtabContainer.Items)
            {
                selectedItem = ((item as TabItem).Content as DBInfoTab).treeView1.SelectedItem;
                info         = ((item as TabItem).Content as DBInfoTab).dbInfoObject;

                SystemConfig.configArgus.DbInfos.Add(info);
            }
            SystemConfig.configArgus.ActiveDBIndex = DBtabContainer.SelectedIndex;
            DeepSerializer.BinarySerialize(SystemConfig.configArgus, SystemConfig.ConfigFileName);
        }