private void button4_Click(object sender, EventArgs e)
        {
            menu obj = new menu(label4.Text);

            this.Close();
            this.Dispose();
            device.Stop();
            obj.Show();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            databaseConnection dc = new databaseConnection();

            dc.open();
            if (dc.insertdata(int.Parse(textBox2.Text), textBox1.Text, textBox3.Text, textBox4.Text, textBox5.Text))
            {
                menu obj = new menu(textBox2.Text);
                obj.Show();
            }
            dc.close();
        }
Пример #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            databaseConnection db = new databaseConnection();
            DataTable          dt = new DataTable();

            db.open();
            if (db.readdata(int.Parse(textBox1.Text), (textBox2.Text)) == true)
            {
                menu obj = new menu(textBox1.Text);
                obj.Show();
            }
            else
            {
                MessageBox.Show("incorrect userID or Password");
            }
            db.close();
            text = textBox1.Text;
        }
        private void button1_Click(object sender, EventArgs e)
        {
            databaseConnection dc = new databaseConnection();

            dc.open();
            try
            {
                if (dc.insertdata(int.Parse(textBox2.Text), textBox1.Text, textBox3.Text, textBox4.Text, textBox5.Text))
                {
                    menu obj = new menu(textBox2.Text);
                    obj.Show();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            dc.close();
        }
Пример #5
0
        private void button1_Click(object sender, EventArgs e)
        {
            databaseConnection db = new databaseConnection();
            DataTable          dt = new DataTable();

            db.open();
            try
            {
                if (db.readdata(int.Parse(textBox1.Text), (textBox2.Text)) == true)
                {
                    menu obj = new menu(textBox1.Text);
                    obj.Show();
                }
                else
                {
                    MessageBox.Show("invalid user id or password");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            db.close();
        }
        private void button4_Click(object sender, EventArgs e)
        {
            menu obj = new menu(label4.Text);

            obj.Show();
        }