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); }
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 void RemoveSubsUi(Views.UserControls.SubscriptionUI subsUi) { var subs = GetAllSubsUi(); foreach (var sub in subs) { if (sub == subsUi) { VgcApis.Misc.UI.Invoke(() => Remove(subsUi)); } } UpdatePanelItemsIndex(); }
void Remove(Views.UserControls.SubscriptionUI subsUi) { flyPanel.Controls.Remove(subsUi); AutoAddEmptyUi(); }