Beispiel #1
0
 /// <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);
     }
 }
Beispiel #2
0
 /// <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);
     }
 }
Beispiel #3
0
 /// <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);
     }
 }
Beispiel #4
0
        /// <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);
            }
        }
Beispiel #5
0
        /// <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());
        }
Beispiel #6
0
 /// <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);
     }
 }
Beispiel #7
0
 /// <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);
 }
Beispiel #8
0
 /// <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);
 }
Beispiel #9
0
 /// <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);
     }
 }
Beispiel #10
0
 /// <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);
 }
Beispiel #11
0
 /// <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);
     }
 }
Beispiel #12
0
 /// <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);
 }
Beispiel #13
0
        /// <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);
            }
        }