Advertisement
Guest User

Untitled

a guest
Jun 13th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.90 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. using Test_Browser;
  10.  
  11. namespace login_Form
  12. {
  13.     public partial class loginform : Form
  14.     {
  15.         public string userName;
  16.         public string passWord;
  17.         public bool terminate;
  18.  
  19.         public loginform()
  20.         {
  21.             InitializeComponent();
  22.             this.ShowDialog();
  23.         }
  24.  
  25.         private void button1_Click(object sender, EventArgs e)
  26.         {
  27.             userName = textUsername.Text.ToString();
  28.             passWord = textPassword.Text.ToString();
  29.  
  30.             this.Close();
  31.             new mainForm( userName, passWord );
  32.         }
  33.  
  34.         private void btnExit_Click(object sender, EventArgs e)
  35.         {
  36.             Application.Exit();            
  37.         }
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement