Beispiel #1
0
 public App()
 {
     try
     {
         if (FB.GetClient() == null)
         {
             Browser b = new Browser(UrlType.Login, new Groups());
             b.Show();
         }
         else
         {
             Groups g = new Groups();
             g.Show();
         }
     }
     catch (NoConnection)
     {
         MessageBox.Show("Could not reach facebook, check internet connection");
         Environment.Exit(1);
     }
 }
Beispiel #2
0
 private void lnk_logout_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     Browser b = new Browser(UrlType.Logout, new Browser(UrlType.Login, new Groups()));
     b.Show();
     this.Close();
 }