예제 #1
0
        private void TradeForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            _infoTimer.Elapsed -= InfoTimer_Elapsed;
            Locale.Instance.UnRegisterView(this);

            ViewClosed?.Invoke();
        }
예제 #2
0
        private static void OnViewClosed(BaseView view)
        {
            var prevState = view.VisibleState;

            (view as IBaseViewInternal).SetVisibleState(VisibleState.Closed);

            if (view.FullscreenFade)
            {
                FullScreenFadeStack.Remove(view);
            }

            ViewClosed?.Invoke(view);
            ViewVisibleStateChanged?.Invoke(view, prevState, view.VisibleState);
        }
        private void CandlestickForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            Locale.Instance.UnRegisterView(this);

            ViewClosed?.Invoke();
        }
예제 #4
0
 private void OnViewClosed()
 {
     ViewClosed?.Invoke();
 }
예제 #5
0
 protected override void OnFormClosed(FormClosedEventArgs e)
 {
     ViewClosed?.Invoke(this, e);
     base.OnFormClosed(e);
 }
        private void BlowoutVolumeForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            Locale.Instance.UnRegisterView(this);

            ViewClosed?.Invoke();
        }
예제 #7
0
 private void OnViewClosed(IView view)
 {
     ViewClosed?.Invoke(this, new ViewChangeEventArgs(view));
 }