private void barButtonItem53_ItemClick(object sender, ItemClickEventArgs e) { barButtonItem53.ButtonStyle = BarButtonStyle.Check; RibonPasif(); if (tsrEtx == null) { tsrEtx = new frm_IhaleTasereEt(); tsrEtx.MdiParent = this; tsrEtx.FormClosed += new FormClosedEventHandler(TsrEtx_FormClosed); tsrEtx.Show(); } else { tsrEtx.Activate(); } }
private void TsrEtx_FormClosed(object sender, FormClosedEventArgs e) { tsrEtx = null; RibonAktif(); barButtonItem53.ButtonStyle = BarButtonStyle.Default; }