daily pastebin goal
76%
SHARE
TWEET

GlobalVariable

a guest Mar 5th, 2010 370 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Net;
  3. using System.Windows;
  4. using System.Windows.Controls;
  5. using System.Windows.Documents;
  6. using System.Windows.Ink;
  7. using System.Windows.Input;
  8. using System.Windows.Media;
  9. using System.Windows.Media.Animation;
  10. using System.Windows.Shapes;
  11.  
  12. namespace MaxTwitter.Classes
  13. {
  14.     public static class GlobalVariable
  15.     {
  16.         public static string TwitterUsername, TwitterPassword;
  17.         public static void saveCredentials(string userName, string password)
  18.         {
  19.             TwitterUsername = userName;
  20.             TwitterPassword = password;
  21.         }
  22.         public static string getUserName()
  23.         {
  24.             return TwitterUsername;
  25.         }
  26.         public static string getPassword()
  27.         {
  28.             return TwitterPassword;
  29.         }
  30.         public static bool isLoggedin()
  31.         {
  32.             if (TwitterUsername != null && TwitterPassword != null && TwitterPassword.Length > 5 && TwitterUsername.Length > 5)
  33.                 return true;
  34.             else
  35.                 return false;
  36.         }
  37.         public static void logout()
  38.         {
  39.             TwitterPassword = TwitterUsername = null;
  40.         }
  41.     }
  42. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top