Ejemplo n.º 1
0
        private void button26_Click(object sender, EventArgs e)
        {
            Managebedallotment bld = new Managebedallotment();

            bld.Show();
            this.Hide();
        }
Ejemplo n.º 2
0
        private void button14_Click(object sender, EventArgs e)
        {
            if (comboBox4.Text != "" && textBox1.Text != "" && textBox2.Text != "" && textBox3.Text != "" && textBox4.Text != "" && textBox5.Text != "" && radioButton1.Checked)
            {
                bd = new bedallotment();
                bd.insert(textBox2.Text, comboBox4.Text, radioButton1.Text, textBox4.Text, textBox5.Text, textBox1.Text);
                MessageBox.Show("Data Inserted");
            }
            else if (comboBox4.Text != "" && textBox1.Text != "" && textBox2.Text != "" && textBox3.Text != "" && textBox4.Text != "" && textBox5.Text != "" && radioButton2.Checked)
            {
                bd.insert(textBox2.Text, comboBox4.Text, radioButton2.Text, textBox4.Text, textBox5.Text, textBox1.Text);
                MessageBox.Show("Data Inserted");
            }
            else
            {
                MessageBox.Show("Error! Insert Complete Data");
            }

            Managebedallotment obj = new Managebedallotment();

            obj.Show();
            this.Hide();
        }