private void UpdateMainLstFrmForLeftTreeChanged(ProjectData data) { //否则是打开工程 if (frmLeft == null || frmLeft.IsDisposed) { frmLeft = new FrmLeft(); //frmLeft.GetLstProjectDataEvent -= frmLeft_GetLstProjectDataEvent; //frmLeft.GetLstProjectDataEvent += frmLeft_GetLstProjectDataEvent; frmLeft.SwitchProject -= frmLeft_SwitchProject; frmLeft.SwitchProject += frmLeft_SwitchProject; //frmLeft.AfterSelect -= frmLeft_AfterSelect; //frmLeft.AfterSelect += frmLeft_AfterSelect; frmLeft.LoadDataCompleted -= frmLeft_LoadDataCompleted; frmLeft.LoadDataCompleted += frmLeft_LoadDataCompleted; frmLeft.AssetsAdd -= frmLeft_AssetsAdd; frmLeft.AssetsAdd += frmLeft_AssetsAdd; frmLeft.AssetsEdit -= frmLeft_AssetsEdit; frmLeft.AssetsEdit += frmLeft_AssetsEdit; frmLeft.AssetsDelete -= frmLeft_AssetsDelete; frmLeft.AssetsDelete += frmLeft_AssetsDelete; this.frmLeft.Show(this.dockPanel1, DockState.DockLeft); this.frmLeft.DockPanel.DockLeftPortion = 0.2; this.frmLeft.AutoHidePortion = 0.2; } else { frmLeft.Visible = true; } this.frmLeft.LoadData(data); }
public OpNotifyMessageClass(ProjectData curProData, DockPanel curDocPanel, FrmLeft curTreeForm, DevExpress.XtraBars.BarEditItem barBPJND) { this.curProData = curProData; this.curDocPanel = curDocPanel; this.curTreeForm = curTreeForm; this.barBPJND = barBPJND; InitEnvent(); }