private void invokeHomePage()
 {
     BackgroundImage = global::UI.Properties.Resources.facebook_widescreen_navy_background_image;
     panelMain.Controls.Clear();
     controlHomePage = new ControlHomePage();
     panelMain.Controls.Add(controlHomePage);
     controlHomePage.AddLogoutButton(buttonLogout);
     controlHomePage.ButtonCreateCollageClicked += buttonCreateCollage_Click;
     controlHomePage.ButtonFindARideClicked     += buttonFindARide_Click;
     controlHomePage.FetchUserInfo();
 }
 private void showHomePage()
 {
     BackgroundImage = global::UI.Properties.Resources.facebook_widescreen_navy_background_image;
     panelMain.Controls.Clear();
     controlHomePage = new ControlHomePage();
     panelMain.Controls.Add(this.controlHomePage);
     controlHomePage.AddLogoutButton(buttonLogout);
     controlHomePage.ButtonFindARide_AddClickedListener(new EventHandler(buttonFindARide_Click));
     controlHomePage.ButtonCreateCollage_AddClickedListener(new EventHandler(buttonCreateCollage_Click));
     controlHomePage.FetchUserInfo();
 }
 public FormFacebookApp()
 {
     InitializeComponent();
     controlHomePage = new ControlHomePage();
 }