//权限用户设置 private void BtnUserSet_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { this.mainPanel.Controls.Clear(); //OperatSetting operate = new OperatSetting(); //operate.Dock = DockStyle.Fill; //this.mainPanel.Controls.Add(operate); SettingControl settingForm = new SettingControl(); settingForm.Dock = DockStyle.Fill; this.mainPanel.Controls.Add(settingForm); }
//系统设置 private void BtnSetting_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { SettingControl settingForm = new SettingControl(); settingForm.Show(); }