public ResimGoster(Veteriner v1) { InitializeComponent(); try { if (v1.dataGridView1.CurrentRow.Cells[0].Value.ToString() != "1") { textBox1.Text = v1.dataGridView1.CurrentRow.Cells[0].Value.ToString(); pictureBox1.Image = Image.FromFile(v1.dataGridView1.CurrentRow.Cells[20].Value.ToString()); pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage; this.ShowDialog(); } else { MessageBox.Show("Hasta resmi yok!"); } } catch { MessageBox.Show("Önce Kayıt Eklemelisiniz!"); } }
private void button1_Click(object sender, EventArgs e) { if (textBox1.Text == "a" && textBox2.Text == "a") { this.Hide(); Veteriner v1 = new Veteriner(); v1.ShowDialog(); this.Close(); } else if (textBox1.Text == "") { MessageBox.Show("Kullanıcı adını Boş bırakamazsınız!"); } else if (textBox2.Text == "") { MessageBox.Show("Şifre sahasını boş bırakamazsınız!"); } else { MessageBox.Show("Yanlış kullanıcı adı veya şifre!"); } }
public IlacGoster(Veteriner v4) { InitializeComponent(); v3 = v4; }
public HastalıkGoster(Veteriner v1) { InitializeComponent(); v2 = v1; }
public AlerjiGoster(Veteriner v1) { InitializeComponent(); v2 = v1; }