private void ShowConfigWin(object sender, ExecutedRoutedEventArgs e)
        {
            ConfigWin win    = new ConfigWin();
            bool?     result = win.ShowDialog();

            if (curDbInfoTab.treeView1.IsInEditMode)
            {
                curDbInfoTab.treeView1.SelectedItem.EndEdit();
            }
            if (result.Value && SystemConfig.configArgus.IsArgumentsValueChanged)
            {
                DeepSerializer.BinarySerialize(SystemConfig.configArgus, SystemConfig.ConfigFileName);

                MessageBox.Show("参数修改,请重新启动程序", "重启");

                findNodesWindow.ShouldExit = true;
                Close();
                Process.Start(Assembly.GetEntryAssembly().Location);
            }
        }
        private void ShowConfigWin(object sender, ExecutedRoutedEventArgs e)
        {
            ConfigWin win = new ConfigWin();
            bool? result = win.ShowDialog();
            if (curDbInfoTab.treeView1.IsInEditMode)
            {
                curDbInfoTab.treeView1.SelectedItem.EndEdit();
            }
            if (result.Value && SystemConfig.configArgus.IsArgumentsValueChanged)
            {
                DeepSerializer.BinarySerialize(SystemConfig.configArgus, SystemConfig.ConfigFileName);

                MessageBox.Show("参数修改,请重新启动程序", "重启");

                findNodesWindow.ShouldExit = true;
                Close();
                Process.Start(Assembly.GetEntryAssembly().Location);
            }
        }
 private void ShowConfigWin(object sender, ExecutedRoutedEventArgs e)
 {
     ConfigWin win = new ConfigWin();
     bool? result = win.ShowDialog();
     if (treeView1.IsInEditMode)
     {
         treeView1.SelectedItem.EndEdit();
         SystemConfig.configArgus.LastVisitNodePath = treeView1.SelectedItem.Path;
     }
     if (result.Value)
     {
         DeepSerializer.BinarySerialize(SystemConfig.configArgus, SystemConfig.ConfigFileName);
         //清除树的所有节点
         treeView1.ClearAllNodes();
         //重新初始化
         Init();
     }
 }