コード例 #1
0
        private void button8_Click(object sender, EventArgs e)
        {
            this.Hide();
            Home hm = new Home();

            hm.Show();
            textBox1.Clear();
            textBox2.Clear();
            textBox3.Clear();
            textBox4.Clear();
            textBox5.Clear();
            textBox6.Clear();
            textBox8.Clear();
            textBox9.Clear();
            dataGridView1.DataSource = null;
        }
コード例 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            string username = "******";
            string password = "******";

            if (textBox1.Text == username && textBox2.Text == password)
            {
                Home H = new Home();
                H.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Enter Correct Username or Password");
            }
            textBox1.Clear();
            textBox2.Clear();
        }
コード例 #3
0
        private void button8_Click(object sender, EventArgs e)
        {
            this.Hide();
            Home hm = new Home();

            hm.Show();
            textBox6.Clear();
            textBox5.Clear();
            textBox7.Clear();
            textBox20.Clear();
            textBox53.Clear();
            textBox55.Clear();
            textBox1.Clear();
            textBox4.Clear();
            textBox56.Clear();
            textBox52.Clear();
            comboBox1.ResetText();
            comboBox13.ResetText();
            comboBox14.ResetText();
            dateTimePicker1.ResetText();
        }
コード例 #4
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            using (OleDbConnection con = new OleDbConnection())
            {
                OleDbCommand command = new OleDbCommand("select * from receptionist where receptionistid = '" + textBox1.Text + "' and password = '******'", con);

                con.Open();
                OleDbDataReader reader = command.ExecuteReader();

                if (reader.HasRows == false)
                {
                    MessageBox.Show("Invalid userId or password. Please try againjt.");
                }
                else
                {
                    this.Hide();
                    Home f2 = new Home();
                    f2.Show();
                }
                reader.Close();
            }
        }
コード例 #5
0
        private void button8_Click_1(object sender, EventArgs e)
        {
            textBox1.Clear();
            textBox2.Clear();
            textBox3.Clear();
            textBox4.Clear();
            textBox5.Clear();
            textBox6.Clear();
            textBox7.Clear();
            comboBox1.Text           = "";
            dataGridView1.DataSource = null;
            FormCollection fc = Application.OpenForms;

            foreach (Form1 fm in fc)
            {
                MessageBox.Show("Hello");
            }
            this.Hide();
            Home hm = new Home();

            hm.Show();
        }
コード例 #6
0
 private void Exit_Click(object sender, EventArgs e)
 {
     this.Hide();
     Home home = new Home();
     home.Show();
 }
コード例 #7
0
ファイル: Login.cs プロジェクト: utsavjain1408/Senpai
 private void BLogin_Click(object sender, EventArgs e)
 {
     Home ob = new Home();
     ob.Show();
 }