예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            p = DatabaseLinker.Login(textBox1.Text, textBox2.Text);

            if (null == p) MessageBox.Show("Wrong password!");
            else if (p is Administrator) goNextForm();
            else if (p is User) goNextForm();
            else MessageBox.Show("Wrong password!");
        }
예제 #2
0
 public FormIndex(Person p)
 {
     person = p;
     InitializeComponent();
 }