public void EnsureSubscriptionForm(SubscriptionControl.ActivePage page) { if (!AccountStatus.Instance.isAuthorized) OpenLoginDialog(); var form = EnsureForm(typeof(SubscriptionForm)); ((IMdiNonChartWindow)form).WindowInnerTabPageIndex = (int)page; }
public void ShowSubscriptionDialogSafe(SubscriptionControl.ActivePage page) { Invoke(new Action<SubscriptionControl.ActivePage>(EnsureSubscriptionForm), page); }
private void OnPageTargeted(SubscriptionControl.ActivePage page) { if (pageTargeted != null) pageTargeted(page); Close(); }