public ClientForm() { InitializeComponent(); this.cblCategories.CheckOnClick = true; this._logicsService = new SmartShopLogics(); this.RefreshData(); this.SetAllCategoriesdCheckState(true); this.MatchGuiToUserType(this.CurrentUserType); this.rdbShowUserControls.Checked = true; this.psCommercials = new ShopSmart.Client.PictureSliderProccessor(); this.InitCommercials(); }
/// <summary> /// Inits the commercials timer. /// </summary> private void InitCommercials() { this.psCommercials = new PictureSliderProccessor(null, INTERVAL_SLIDE_COMMERCIALS); this._tmrCommercials = new Timer(); this._tmrCommercials.Interval = INTERVAL_CHECK_FOR_COMMERCIALS; this._tmrCommercials.Tick += _tmrCommercials_Tick; this.psCommercials.OnImageChanged += psCommercials_OnImageChanged; this._tmrCommercials.Start(); }