예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if ((comboBox1.Text.CompareTo("DONOR") == 0) && (textBox1.Text.CompareTo("1234") == 0))
            {
                MessageBox.Show("Successfully logged in as donor");
                Donorpage d5 = new Donorpage();
                d5.Show();
            }
            else
            if ((comboBox1.Text.CompareTo("HOSPITAL") == 0) && (textBox1.Text.CompareTo("6789") == 0))
            {
                MessageBox.Show("Successfully logged in as existing hospital");
                existinghospital d1 = new existinghospital();
                d1.Show();
            }

            else
            {
                MessageBox.Show("Username and password do not exist");
            }
        }
예제 #2
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            Donorpage d = new Donorpage();

            d.Show();
        }