void AddSubsUiItem(Models.Datas.SubscriptionItem data) { var subsUi = new Views.UserControls.SubscriptionUI(this, data); subsUi.OnDelete += UpdatePanelItemsIndex; flyPanel.Controls.Add(subsUi); }
void AddSubsUiItem(Models.Datas.SubscriptionItem data) { var subsUi = new Views.UserControls.SubscriptionUI(this, data); flyPanel.Controls.Add(subsUi); flyPanel.ScrollControlIntoView(subsUi); }
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; }
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); }
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); }
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(); }