/// <summary> /// 按纽事件 /// </summary> /// <param name="TransactionLeftControlType"></param> private void leftNavControl_ButtonClick(ManagementCenter.Model.CommonClass.ButtonFunctionTypes.TransactionLeftControlType TransactionLeftControlType) { switch (TransactionLeftControlType) { case ButtonFunctionTypes.TransactionLeftControlType.CenterManage: this.panelRight.Controls.Clear(); CenterManage centerManage = new CenterManage(); centerManage.Dock = DockStyle.Fill; this.panelRight.Controls.Add(centerManage); break; case ButtonFunctionTypes.TransactionLeftControlType.MachineManage: this.panelRight.Controls.Clear(); MachineManage machineManage = new MachineManage(); machineManage.Dock = DockStyle.Fill; this.panelRight.Controls.Add(machineManage); //new AddFundForm().ShowDialog(); break; } }
/// <summary> /// 委托左边导航条按纽事件 /// </summary> /// <param name="TransactionLeftControlType"></param> private void leftControl_ButtonClick(ManagementCenter.Model.CommonClass.ButtonFunctionTypes.TransactionLeftControlType TransactionLeftControlType) { switch (TransactionLeftControlType) { case ButtonFunctionTypes.TransactionLeftControlType.AccountManage: this.panelRight.Controls.Clear(); AccountManage accountManage = new AccountManage(); accountManage.Dock = DockStyle.Fill; this.panelRight.Controls.Add(accountManage); break; case ButtonFunctionTypes.TransactionLeftControlType.AddFundManage: this.panelRight.Controls.Clear(); FundQuery fundQuery = new FundQuery(); fundQuery.Dock = DockStyle.Fill; this.panelRight.Controls.Add(fundQuery); //new AddFundForm().ShowDialog(); break; case ButtonFunctionTypes.TransactionLeftControlType.FreezeManage: this.panelRight.Controls.Clear(); FreezeManage freezeManage = new FreezeManage(); freezeManage.Dock = DockStyle.Fill; this.panelRight.Controls.Add(freezeManage); break; case ButtonFunctionTypes.TransactionLeftControlType.TransferManageUI: this.panelRight.Controls.Clear(); TransferManageUI transferManageUI = new TransferManageUI(); transferManageUI.Dock = DockStyle.Fill; this.panelRight.Controls.Add(transferManageUI); break; } }