Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- object static Method(string name,int age)
- {
- return new Class(string name,int age);
- }
- namespace DesktopApp17
- {
- public partial class Form1 : Form
- {
- Employee Daniel = new Employee("Daniel", 5741);
- Employee James = new Employee("James", 1234);
- Form2 dq = new Form2();
- public Form1()
- {
- InitializeComponent();
- }
- private void SIGN_IN_BUTTON_Click(object sender, EventArgs e)
- {
- if (pin.Text == string.Empty)
- {
- MessageBox.Show("Error!");
- }
- if (pin.Text =="5741")
- {
- Daniel.Sign_In(int.Parse(pin.Text));
- }
- if (pin.Text == "1234")
- {
- James.Sign_In(int.Parse(pin.Text));
- }
Add Comment
Please, Sign In to add comment