Esempio n. 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);
     }
 }
Esempio n. 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);
     }
 }
Esempio n. 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);
     }
 }
Esempio n. 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);
            }
        }
Esempio n. 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());
        }
Esempio n. 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);
     }
 }
Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 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);
     }
 }
Esempio n. 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);
 }
Esempio n. 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);
     }
 }
Esempio n. 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);
 }
Esempio n. 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);
            }
        }