예제 #1
0
파일: MainForm.cs 프로젝트: ltj/rentit
 /// <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;
 }
예제 #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);
 }