/// <summary> /// 从系统中注销 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void barLogOnSys_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { Common._authorid = null; Common._authornm = null; Common._personid = null; Common._personname = null; Common._personpswd = null; Common._myTeamName = ""; Common._orgTeamName = ""; Common._JobForId = ""; Common._JobForName = ""; Common._LineId = ""; Common._LineName = ""; Common._ProjectId = ""; Common._ProjectName = ""; Common._TeamId = ""; Common._TeamName = ""; this.Dispose(); frmMenu frmmenu = new frmMenu(); frmLogin frmLog = new frmLogin(ref frmmenu); frmLog.ShowDialog(); if (frmLog.DialogResult == DialogResult.OK) { frmLog.Dispose(); frmLog = null; frmmenu.ShowDialog(); GC.Collect(); Application.Exit(); } else { } } catch (Exception ex) { XtraMsgBox.Show("", "", MessageBoxButtons.OK, MessageBoxIcon.Error, ex, this.GetType()); } }