Beispiel #1
0
 /// <summary>
 /// Handles change requests to the content of the window to a new control.
 /// </summary>
 /// <param name="sender">The sender of the request.</param>
 /// <param name="args">The arguments specifying the new control.</param>
 private void ChangeContent(object sender, ContentChangeArgs args)
 {
     Content = args.NewControl;
     TopBar.Title = args.NewTitle;
 }
Beispiel #2
0
 /// <summary>
 /// For propagating the MainForms subscription to the ContentChangeEvent
 /// to the RentItUserControl's inner RentItUserControls.
 /// </summary>
 protected void ContentChangeEventPropagated(object obj, ContentChangeArgs e)
 {
     FireContentChangeEvent(e.NewControl, e.NewTitle);
 }