コード例 #1
0
        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();
        }
コード例 #2
0
        /// <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();
        }