/// <summary> /// Сохранение настроек в файл /// </summary> public void SaveSettings(MySettings settings) { using (StreamWriter sw = new StreamWriter("bin/Settings.dat")) { sw.Write(SerializeHelper.Serialize(settings)); } }
/// <summary> /// Инициализация класса /// </summary> public void InitializeWebDriver() { accounts = Account.LoadAccounts(); refferals = Refferal.LoadRefferals(); myProxies = MyProxy.LoadProxies(); settings = new MySettings(); settings.LoadSettings(); phone = new PhoneNumber(); phone.SetApiKey(settings.SmsApiKey); }