/// <summary>
        /// 选择服务器文件
        /// </summary>
        private void SelectDediDir(object sender, RoutedEventArgs e)
        {
            var openFileDialog = new Microsoft.Win32.OpenFileDialog
            {
                Title            = "选择服务器exe文件",
                FileName         = "dontstarve_dedicated_server_nullrenderer", //默认文件名
                DefaultExt       = ".exe",                                     // 默认文件扩展名
                Filter           = "饥荒服务器exe文件(*.exe)|dontstarve_dedicated_server_nullrenderer.exe",
                FilterIndex      = 1,
                RestoreDirectory = true
            };

            if (openFileDialog.ShowDialog() == true)
            {
                var fileName = openFileDialog.FileName;
                if (string.IsNullOrEmpty(fileName) || !fileName.Contains("dontstarve_dedicated_server_nullrenderer"))
                {
                    MessageBox.Show("文件选择错误,请选择正确文件");
                    return;
                }
                // 判断是否选择了客户端目录下的的服务器程序
                if (!fileName.Contains("Don't Starve Together Dedicated Server") && !fileName.Contains("饥荒联机版专用服务器"))
                {
                    if (MessageBox.Show("似乎选择了客户端目录的程序,请确认!如果确定没有问题仍然保存点击“是”(判断出错的情况一般只出现在WeGame版)!", "似乎选错了呢...", MessageBoxButton.YesNo) != MessageBoxResult.Yes)
                    {
                        return;
                    }
                }
                CommonPath.ServerFilePath = fileName;
                DediDirSelectTextBox.Text = fileName;
                CommonPath.WriteServerPath(fileName, CommonPath.GamePlatform);
                // 检查通用设置
                CheckCommonSetting(true);
            }
        }