private void button2_Click(object sender, EventArgs e) { BazaDeDate f = new BazaDeDate(this); f.Show(); this.Hide(); }
private void pictureBox1_MouseClick_1(object sender, MouseEventArgs e) { if (e.X > 80 && e.X < 80 + 190 && e.Y > 210 && e.Y < 210 + 100) { tb = new Database1DataSet.InformatiiDataTable(); tba = new Database1DataSetTableAdapters.InformatiiTableAdapter(); tba.Fill(tb); if (this.radioButton1.Checked) { tba.Insert((long)this.comboBox1.SelectedValue, (double)this.numericUpDown1.Value, this.textBox2.Text, this.textBox3.Text, (double)numericUpDown2.Value, (double)numericUpDown3.Value, "Femela", (int)numericUpDown5.Value, this.textBox1_imgPath.Text); } else { tba.Insert((long)this.comboBox1.SelectedValue, (double)this.numericUpDown1.Value, this.textBox2.Text, this.textBox3.Text, (double)numericUpDown2.Value, (double)numericUpDown3.Value, "Mascul", (int)numericUpDown5.Value, this.textBox1_imgPath.Text); } MessageBox.Show("Cățel inserat"); } if (e.X > 80 && e.X < 80 + 190 && e.Y > 280 && e.Y < 280 + 100) { BazaDeDate f = new BazaDeDate(this); f.Show(); this.Hide(); } }