/// <summary> /// 读取设置 /// </summary> internal static Settings Load() { Settings settings = null; try { using (FileStream stream = File.OpenRead(Path.Combine(_dataFolder, "Settings.dat"))) { BinaryFormatter formatter = new BinaryFormatter(); settings = (Settings)formatter.Deserialize(stream); } } catch (Exception ex) { settings = new Settings(); if (ex is FileNotFoundException || ex is DirectoryNotFoundException) { settings.FirstTime = true; } } return settings; }
internal ChannelSearch(Settings settings) :base() { Settings = settings; }