Advertisement
Guest User

Untitled

a guest
Sep 16th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.68 KB | None | 0 0
  1.      namespace WindowsFormsApplication1
  2. {
  3.     class CheckUsername_Pass
  4.     {
  5.         public static string Check(string UsernameCheck, string PasswordCheck,string username, string password)
  6.         {
  7.             UsernameCheck = "Omega" + "omega";
  8.             PasswordCheck = "Sweet12" + "sweet12";
  9.  
  10.             if (username == UsernameCheck & password == PasswordCheck)
  11.             {
  12.                 System.Windows.Forms.MessageBox.Show("Login Successful");
  13.             }
  14.             else
  15.             {
  16.                 System.Windows.Forms.MessageBox.Show("Login Failed \n Please Check The Username Or Password For Errors.");
  17.  
  18.             }
  19.         }
  20.        
  21.     }
  22.      
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement