示例#1
0
 /// <summary>
 /// Сохранение настроек в файл
 /// </summary>
 public void SaveSettings(MySettings settings)
 {
     using (StreamWriter sw = new StreamWriter("bin/Settings.dat"))
     {
         sw.Write(SerializeHelper.Serialize(settings));
     }
 }
示例#2
0
 /// <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);
 }