private void departman(string strDep) { frmAnaForm frmAna = ParentForm as frmAnaForm; switch (strDep) { case "Resepsiyon": frmAna.departman_StripStatus_degis = strDep; frmAna.rezervasyon_MenuItem.Enabled = true; frmAna.m_giris_MenuItem.Enabled = true; frmAna.m_cikis_MenuItem.Enabled = true; frmAna.anaFormu_geriGetir(); break; case "Restoran": frmAna.departman_StripStatus_degis = strDep; frmAna.restoran_MenuItem.Enabled = true; break; case "Yonetim": frmAna.departman_StripStatus_degis = strDep; frmAna.yonetim_MenuItem.Enabled = true; break; } }
private void frmMRezervasyon_FormClosing(object sender, FormClosingEventArgs e) { frmAnaForm.anaFormu_geriGetir(); }
private void frmMCikis_FormClosed(object sender, FormClosedEventArgs e) { frmAnaForm.anaFormu_geriGetir(); }