Guest User

Untitled

a guest
May 27th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. object static Method(string name,int age)
  2. {
  3. return new Class(string name,int age);
  4. }
  5.  
  6. namespace DesktopApp17
  7. {
  8. public partial class Form1 : Form
  9.  
  10. {
  11. Employee Daniel = new Employee("Daniel", 5741);
  12. Employee James = new Employee("James", 1234);
  13.  
  14.  
  15.  
  16. Form2 dq = new Form2();
  17.  
  18.  
  19.  
  20. public Form1()
  21. {
  22.  
  23.  
  24. InitializeComponent();
  25.  
  26.  
  27. }
  28.  
  29. private void SIGN_IN_BUTTON_Click(object sender, EventArgs e)
  30.  
  31. {
  32. if (pin.Text == string.Empty)
  33. {
  34. MessageBox.Show("Error!");
  35. }
  36. if (pin.Text =="5741")
  37. {
  38. Daniel.Sign_In(int.Parse(pin.Text));
  39. }
  40. if (pin.Text == "1234")
  41. {
  42. James.Sign_In(int.Parse(pin.Text));
  43.  
  44.  
  45. }
Add Comment
Please, Sign In to add comment