/* Главный конструктор, после формы логина */ public MainFormView(UserModel _um, LoginFormView _lf) { InitializeComponent(); um = _um; lf = _lf; AmazonLink = ConfigurationManager.AppSettings.Get("amzLink"); JustExit = true; logController = new LoggerController(this); logList = new List <LoggerModel> { }; //блок, где проверяем, нужно ли обновить данные курса валют. обновляем раз в сутки string tmp = ConfigurationManager.AppSettings.Get("currencyCheck"); currencyLastUpdate = new DateTime(int.Parse(tmp.Substring(6, 4)), int.Parse(tmp.Substring(3, 2)), int.Parse(tmp.Substring(0, 2))); if (currencyLastUpdate != DateTime.Today) { int result = 0; CurrencyController curController = new CurrencyController(); result = curController.UpdateCurrencies(); if (result == 1) { UpdateConfig(DateTime.Today.ToString().Substring(0, 10)); } } GetStartLogsCount(); //timer1.Start(); }
public RestorePasswordView(LoginFormView _lf) { InitializeComponent(); lfController = new LoginFormController(this); spControl = new SecuredPasswordController(); controlLoginFormView = _lf; ChangedSuccessfully = false; label1.Text = message1; phase = 1; }
public LoginFormController(LoginFormView _lf) { connection = DBData.GetDBConnection(); controlLoginFormControl = _lf; }