예제 #1
0
        /// <summary>
        /// Release unused resources and unsubscribe from events. This method must work correctly,
        /// even if called multiple times.
        /// </summary>
        protected virtual void OverrideableDispose()
        {
            // This unsubscribes events form the view.
            VueBindings?.Dispose();
            VueBindings = null;

            GetViewModel()?.OnClosing();
        }
예제 #2
0
 /// <inheritdoc/>
 public virtual void ShowInView(IHtmlView htmlView, KeyValueList <string, string> variables, Navigation redirectedFrom)
 {
     View           = htmlView;
     RedirectedFrom = redirectedFrom;
     SetHtmlViewBackgroundColor(htmlView);
     VueBindings?.Dispose();
     VueBindings = null;
 }