void iClose_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (CurrentForm != null) { CurrentForm.Close(); } }
private void MAINBASE_FormClosed(object sender, FormClosedEventArgs e) { foreach (Form CurrentForm in this.MdiChildren) { if (CurrentForm.Name != this.Name) { CurrentForm.Close(); } } //GeneralCommon.Gp_LogData(GeneralCommon.sUserID + "," + GeneralCommon.sUsername + "在" + DateTime.Now.ToString() + "于" + GeneralCommon.Gf_GetIP() + ",登出" + this.Name); }