/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public MainViewModel() { ForwardDb.InitDataBase(); this.StartCommand = new RelayCommand(() => ExecuteStartCommand()); this.LoginCommand = new RelayCommand(() => ExecuteLoginCommand()); this.forwardTimer = new Timer(this.forwardCallback, null, Timeout.Infinite, this.Interval * 1000 * 60); this.updateCookieTimer = new Timer(this.updateCookieCallback, null, Timeout.Infinite, 60 * 1000 * 60); }