Exemple #1
0
        void AddSubsUiItem(Models.Datas.SubscriptionItem data)
        {
            var subsUi = new Views.UserControls.SubscriptionUI(this, data);

            subsUi.OnDelete += UpdatePanelItemsIndex;
            flyPanel.Controls.Add(subsUi);
        }
Exemple #2
0
        void AddSubsUiItem(Models.Datas.SubscriptionItem data)
        {
            var subsUi = new Views.UserControls.SubscriptionUI(this, data);

            flyPanel.Controls.Add(subsUi);
            flyPanel.ScrollControlIntoView(subsUi);
        }
Exemple #3
0
 private void InitControls(Models.Datas.SubscriptionItem subscriptItem)
 {
     lbIndex.Text         = "";
     tboxUrl.Text         = subscriptItem.url;
     tboxAlias.Text       = subscriptItem.alias;
     chkIsUse.Checked     = subscriptItem.isUse;
     chkIsSetMark.Checked = subscriptItem.isSetMark;
 }
Exemple #4
0
        void AddSubsUiItem(Models.Datas.SubscriptionItem data)
        {
            var subsUi = new Views.UserControls.SubscriptionUI(this, data);

            flyPanel.Controls.Add(subsUi);
            flyPanel.ScrollControlIntoView(subsUi);
            UpdateServUiTotal(this, EventArgs.Empty);
        }
Exemple #5
0
        public SubscriptionUI(
            Subscription subsCtrl,
            Models.Datas.SubscriptionItem subscriptItem)
        {
            InitializeComponent();

            this.subsCtrl = subsCtrl;

            servers  = Services.Servers.Instance;
            settings = Services.Settings.Instance;

            // tab page is lazy, do not call this in Load().
            InitControls(subscriptItem);
        }
Exemple #6
0
        public SubscriptionUI(
            Subscription subsCtrl,
            Models.Datas.SubscriptionItem subscriptItem)
        {
            InitializeComponent();

            this.subsCtrl = subsCtrl;
            servers       = Services.Servers.Instance;
            lazyCounter   = new VgcApis.Libs.Tasks.LazyGuy(UpdateServerTotalNow, 1000);

            // tab page is lazy, do not call this in Load().
            InitControls(subscriptItem);

            BindEvent();
            lazyCounter.DoItLater();

            Disposed += (s, a) => Cleanup();
        }