private void kiralıkDurumGüncellemeToolStripMenuItem_Click(object sender, EventArgs e) { KiralamaForm kiralikGuncellefrm = new KiralamaForm(); kiralikGuncellefrm.Show(); kiralikGuncellefrm.dataGridView1.Visible = false; kiralikGuncellefrm.btnKirala.Visible = false; kiralikGuncellefrm.dataGridKiralik.Visible = true; kiralikGuncellefrm.btnGuncelle.Visible = true; kiralikGuncellefrm.kiralikBilgisiCek(); this.Visible = false; kiralikGuncellefrm.FormClosed += KiralikGuncellefrm_FormClosed; }
private void kiralamaİşlemleriToolStripMenuItem_Click(object sender, EventArgs e) { KiralamaForm kiralamaFrm = new KiralamaForm(); kiralamaFrm.Show(); kiralamaFrm.dataGridView1.Visible = true; kiralamaFrm.btnKirala.Visible = true; kiralamaFrm.dataGridKiralik.Visible = false; kiralamaFrm.btnGuncelle.Visible = false; kiralamaFrm.listele(); this.Visible = false; kiralamaFrm.FormClosed += KiralamaFrm_FormClosed; }