/// <summary> /// Called when the view manager is unloading. /// <para /> /// This method is public because the view loaded manager must be subscribed to as a weak event. /// </summary> public void OnViewLoadedManagerUnloading(object sender, ViewLoadEventArgs e) { if (ReferenceEquals(e.View, TargetView)) { OnTargetViewUnloadingInternal(TargetView, EventArgs.Empty); } }
/// <summary> /// Public event to get information about the parent view. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The event args.</param> public void OnViewLoadedManagerUnloadingForParentView(object sender, ViewLoadEventArgs e) { if (ReferenceEquals(e.View, ParentViewModelContainer)) { OnParentViewModelContainerUnloading(e.View, EventArgs.Empty); } }
/// <summary> /// Called when the view manager is unloaded. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="ViewLoadEventArgs"/> instance containing the event data.</param> protected virtual void OnViewLoadedManagerUnloaded(object sender, ViewLoadEventArgs e) { if (ReferenceEquals(e.View, TargetView)) { OnTargetViewUnloadedInternal(TargetView, EventArgs.Empty); } }
/// <summary> /// Called when the view manager is unloading. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="ViewLoadEventArgs"/> instance containing the event data.</param> protected override void OnViewLoadedManagerUnloading(object sender, ViewLoadEventArgs e) { base.OnViewLoadedManagerUnloading(sender, e); if (ReferenceEquals(e.View, ParentViewModelContainer)) { OnParentViewModelContainerUnloading(e.View, EventArgs.Empty); } }
/// <summary> /// </summary> protected void Page_Load(object sender, EventArgs e) { try { //Send the ModuleLoad event of the Presenter var args = new ViewLoadEventArgs { IsPostBack = this.Page.IsPostBack }; if (ModuleLoad != null) { ModuleLoad(this, args); } } catch (Exception exc) //Module failed to load { Exceptions.ProcessModuleLoadException(this, exc); } lblNoItems.Visible = (ItemList == null || !ItemList.Any()); }
/// <summary> /// Called when the view manager is unloaded. /// <para /> /// This method is public because the view loaded manager must be subscribed to as a weak event. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="ViewLoadEventArgs"/> instance containing the event data.</param> public void OnViewLoadedManagerUnloadedInternal(object sender, ViewLoadEventArgs e) { OnViewLoadedManagerUnloaded(sender, e); }
/// <summary> /// Called when the view manager is unloading. /// <para /> /// This method is public because the view loaded manager must be subscribed to as a weak event. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="ViewLoadEventArgs"/> instance containing the event data.</param> public void OnViewLoadedManagerLoadingInternal(object sender, ViewLoadEventArgs e) { OnViewLoadedManagerLoading(sender, e); }
/// <summary> /// Called when the view manager is unloaded. /// <para /> /// This method is public because the view loaded manager must be subscribed to as a weak event. /// </summary> public void OnViewLoadedManagerUnloaded(object sender, ViewLoadEventArgs e) { if (ReferenceEquals(e.View, TargetView)) { OnTargetViewUnloadedInternal(TargetView, EventArgs.Empty); } }
/// <summary> /// Called when the view manager is unloading. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="ViewLoadEventArgs"/> instance containing the event data.</param> protected virtual void OnViewLoadedManagerUnloading(object sender, ViewLoadEventArgs e) { if (ReferenceEquals(e.View, TargetView)) { OnTargetViewUnloadingInternal(TargetView, EventArgs.Empty); } }