public void InitConfig()
        {
            AppPrefs.Init("./AppConfig.json");
            cbBaseDir.Text = AppPrefs.GetString("cbBaseDir", "");

            List <SortType> listTypes = new List <SortType>();

            listTypes.Add(SortType.从大到小);
            listTypes.Add(SortType.从小到大);

            cbSortType.ItemsSource = listTypes;

            cbSortType.SelectedIndex = AppPrefs.GetInt("cbSortType", 0);
        }
        public void InitDebuger()
        {
            Debuger.Init(AppDomain.CurrentDomain.BaseDirectory + "/Log/", new SystemColorConsole());
            Debuger.EnableLog = AppPrefs.GetInt("EnableLog", 1) > 0;
#if DEBUG
            Debuger.EnableLog = true;
#endif
            Debuger.EnableDate       = true;
            Debuger.EnableLogVerbose = false;
            Debuger.EnableSave       = true;
            Debuger.EnableErrorStack = false;
            Debuger.LogWarning("AppDomain:{0}", AppDomain.CurrentDomain.FriendlyName);
            Debuger.LogWarning("WorkDir:{0}", Directory.GetCurrentDirectory());
        }