更新主题选项

This commit is contained in:
Colin 2023-08-30 15:08:44 +08:00
parent a6c2359741
commit 8d13f2ea3c
14 changed files with 36 additions and 24 deletions

View File

@ -197,7 +197,7 @@
//
this.expandablePanel1.CanvasColor = System.Drawing.SystemColors.Control;
this.expandablePanel1.CollapseDirection = DevComponents.DotNetBar.eCollapseDirection.RightToLeft;
this.expandablePanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
this.expandablePanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.expandablePanel1.DisabledBackColor = System.Drawing.Color.Empty;
this.expandablePanel1.Dock = System.Windows.Forms.DockStyle.Left;
this.expandablePanel1.Font = new System.Drawing.Font("宋体", 9.5F);

View File

@ -374,7 +374,7 @@
//
this.expandablePanel1.CanvasColor = System.Drawing.SystemColors.Control;
this.expandablePanel1.CollapseDirection = DevComponents.DotNetBar.eCollapseDirection.RightToLeft;
this.expandablePanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
this.expandablePanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.expandablePanel1.DisabledBackColor = System.Drawing.Color.Empty;
this.expandablePanel1.Dock = System.Windows.Forms.DockStyle.Left;
this.expandablePanel1.Font = new System.Drawing.Font("宋体", 9.5F);

View File

@ -4,18 +4,20 @@ using AIMSBLL;
using AIMSExtension;
using AIMSModel;
using DevComponents.DotNetBar;
using DevComponents.DotNetBar.Metro.ColorTables;
using DocumentManagement;
using System;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace AIMS
{
public partial class FormMainManage : OfficeForm
public partial class FormMainManage : Office2007Form
{
public FormMainManage()
{
@ -39,8 +41,10 @@ namespace AIMS
eStyle.VisualStudio2012Dark ,
eStyle.OfficeMobile2014 });
comboBoxEx1.SelectedIndex = 1;
SetGridAlternatingRows(lv1);
comboBoxEx2.Items.AddRange(MetroColorGeneratorParameters.GetAllPredefinedThemes().Cast<object>()
.ToArray());
SetGridAlternatingRows(lv1);
SetGridAlternatingRows(lv2);
SetGridAlternatingRows(lv3);
SetGridAlternatingRows(lv4);
@ -92,8 +96,16 @@ namespace AIMS
eStyle style = (eStyle)comboBoxEx1.SelectedItem;
if (styleManager1.ManagerStyle != style)
styleManager1.ManagerStyle = style;
styleManager1.MetroColorParameters = MetroColorGeneratorParameters.Cherry;
}
private void comboBoxEx2_SelectedIndexChanged(object sender, EventArgs e)
{
if (comboBoxEx1.SelectedItem == null) return;
var style = (MetroColorGeneratorParameters)comboBoxEx2.SelectedItem;
//if (styleManager1.MetroColorParameters != style)
styleManager1.MetroColorParameters = style;
//styleManager1.MetroColorParameters = MetroColorGeneratorParameters.Cherry;
}
private void FormMainManage_Load(object sender, EventArgs e)
{

Binary file not shown.

View File

@ -822,7 +822,7 @@
this.circularProgress1.Name = "circularProgress1";
this.circularProgress1.ProgressColor = System.Drawing.Color.DodgerBlue;
this.circularProgress1.Size = new System.Drawing.Size(389, 239);
this.circularProgress1.Style = DevComponents.DotNetBar.eDotNetBarStyle.OfficeXP;
this.circularProgress1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.circularProgress1.TabIndex = 6;
this.circularProgress1.Value = 100;
//

View File

@ -959,7 +959,7 @@
this.circularProgress1.Name = "circularProgress1";
this.circularProgress1.ProgressColor = System.Drawing.Color.DodgerBlue;
this.circularProgress1.Size = new System.Drawing.Size(389, 239);
this.circularProgress1.Style = DevComponents.DotNetBar.eDotNetBarStyle.OfficeXP;
this.circularProgress1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.circularProgress1.TabIndex = 6;
this.circularProgress1.Value = 100;
//
@ -1049,7 +1049,7 @@
this.circularProgress2.Name = "circularProgress2";
this.circularProgress2.ProgressColor = System.Drawing.Color.DodgerBlue;
this.circularProgress2.Size = new System.Drawing.Size(389, 239);
this.circularProgress2.Style = DevComponents.DotNetBar.eDotNetBarStyle.OfficeXP;
this.circularProgress2.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.circularProgress2.TabIndex = 6;
this.circularProgress2.Value = 100;
//

View File

@ -959,7 +959,7 @@
this.circularProgress1.Name = "circularProgress1";
this.circularProgress1.ProgressColor = System.Drawing.Color.DodgerBlue;
this.circularProgress1.Size = new System.Drawing.Size(389, 239);
this.circularProgress1.Style = DevComponents.DotNetBar.eDotNetBarStyle.OfficeXP;
this.circularProgress1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.circularProgress1.TabIndex = 6;
this.circularProgress1.Value = 100;
//
@ -1049,7 +1049,7 @@
this.circularProgress2.Name = "circularProgress2";
this.circularProgress2.ProgressColor = System.Drawing.Color.DodgerBlue;
this.circularProgress2.Size = new System.Drawing.Size(389, 239);
this.circularProgress2.Style = DevComponents.DotNetBar.eDotNetBarStyle.OfficeXP;
this.circularProgress2.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.circularProgress2.TabIndex = 6;
this.circularProgress2.Value = 100;
//

View File

@ -748,7 +748,7 @@
this.circularProgress1.Name = "circularProgress1";
this.circularProgress1.ProgressColor = System.Drawing.Color.DodgerBlue;
this.circularProgress1.Size = new System.Drawing.Size(389, 239);
this.circularProgress1.Style = DevComponents.DotNetBar.eDotNetBarStyle.OfficeXP;
this.circularProgress1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.circularProgress1.TabIndex = 6;
this.circularProgress1.Value = 100;
//

View File

@ -127,7 +127,7 @@ namespace AIMS.PublicUI.UI
this.btnDelete.Location = new System.Drawing.Point(861, 6);
this.btnDelete.Name = "btnDelete";
this.btnDelete.Size = new System.Drawing.Size(106, 30);
this.btnDelete.Style = DevComponents.DotNetBar.eDotNetBarStyle.OfficeMobile2014;
this.btnDelete.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnDelete.TabIndex = 2;
this.btnDelete.Text = "删除";
this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);

View File

@ -1339,7 +1339,7 @@
this.circularProgress1.Name = "circularProgress1";
this.circularProgress1.ProgressColor = System.Drawing.Color.DodgerBlue;
this.circularProgress1.Size = new System.Drawing.Size(389, 239);
this.circularProgress1.Style = DevComponents.DotNetBar.eDotNetBarStyle.OfficeXP;
this.circularProgress1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.circularProgress1.TabIndex = 6;
this.circularProgress1.Value = 100;
//
@ -1985,7 +1985,7 @@
this.circularProgress2.Name = "circularProgress2";
this.circularProgress2.ProgressColor = System.Drawing.Color.DodgerBlue;
this.circularProgress2.Size = new System.Drawing.Size(389, 239);
this.circularProgress2.Style = DevComponents.DotNetBar.eDotNetBarStyle.OfficeXP;
this.circularProgress2.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.circularProgress2.TabIndex = 6;
this.circularProgress2.Value = 100;
//

View File

@ -664,13 +664,13 @@ namespace AIMS.OperationFront.UI
this.navigationPane1.NavigationBarHeight = 190;
this.navigationPane1.Padding = new System.Windows.Forms.Padding(1);
this.navigationPane1.Size = new System.Drawing.Size(320, 737);
this.navigationPane1.Style = DevComponents.DotNetBar.eDotNetBarStyle.Office2013;
this.navigationPane1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.navigationPane1.TabIndex = 0;
//
//
//
this.navigationPane1.TitlePanel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.navigationPane1.TitlePanel.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2013;
this.navigationPane1.TitlePanel.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.navigationPane1.TitlePanel.DisabledBackColor = System.Drawing.Color.Empty;
this.navigationPane1.TitlePanel.Dock = System.Windows.Forms.DockStyle.Top;
this.navigationPane1.TitlePanel.Font = new System.Drawing.Font("΢ÈíÑźÚ", 11.5F, System.Drawing.FontStyle.Bold);
@ -692,7 +692,7 @@ namespace AIMS.OperationFront.UI
//
// navigationPanePanel1
//
this.navigationPanePanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2013;
this.navigationPanePanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.navigationPanePanel1.Controls.Add(this.groupBoxsel);
this.navigationPanePanel1.DisabledBackColor = System.Drawing.Color.Empty;
this.navigationPanePanel1.Dock = System.Windows.Forms.DockStyle.Fill;
@ -1069,7 +1069,7 @@ namespace AIMS.OperationFront.UI
//
// navigationPanePanel4
//
this.navigationPanePanel4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2013;
this.navigationPanePanel4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.navigationPanePanel4.Controls.Add(this.groupBox2);
this.navigationPanePanel4.DisabledBackColor = System.Drawing.Color.Empty;
this.navigationPanePanel4.Dock = System.Windows.Forms.DockStyle.Fill;
@ -1410,7 +1410,7 @@ namespace AIMS.OperationFront.UI
//
// navigationPanePanel5
//
this.navigationPanePanel5.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2013;
this.navigationPanePanel5.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.navigationPanePanel5.Controls.Add(this.v);
this.navigationPanePanel5.DisabledBackColor = System.Drawing.Color.Empty;
this.navigationPanePanel5.Dock = System.Windows.Forms.DockStyle.Fill;
@ -1751,7 +1751,7 @@ namespace AIMS.OperationFront.UI
//
// navigationPanePanel2
//
this.navigationPanePanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2013;
this.navigationPanePanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.navigationPanePanel2.Controls.Add(this.groupBox1);
this.navigationPanePanel2.DisabledBackColor = System.Drawing.Color.Empty;
this.navigationPanePanel2.Dock = System.Windows.Forms.DockStyle.Fill;

View File

@ -172,7 +172,7 @@
this.cboOperationRoom.Location = new System.Drawing.Point(452, 12);
this.cboOperationRoom.Name = "cboOperationRoom";
this.cboOperationRoom.Size = new System.Drawing.Size(103, 28);
this.cboOperationRoom.Style = DevComponents.DotNetBar.eDotNetBarStyle.OfficeMobile2014;
this.cboOperationRoom.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.cboOperationRoom.TabIndex = 500;
this.cboOperationRoom.Visible = false;
//

View File

@ -161,7 +161,7 @@ namespace AIMS.OperationFront.UI
this.cboOperationRoom.Location = new System.Drawing.Point(462, 12);
this.cboOperationRoom.Name = "cboOperationRoom";
this.cboOperationRoom.Size = new System.Drawing.Size(103, 28);
this.cboOperationRoom.Style = DevComponents.DotNetBar.eDotNetBarStyle.OfficeMobile2014;
this.cboOperationRoom.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.cboOperationRoom.TabIndex = 0;
this.cboOperationRoom.Visible = false;
//

View File

@ -36,7 +36,7 @@
// panelEx1
//
this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control;
this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2010;
this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty;
this.panelEx1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelEx1.Font = new System.Drawing.Font("微软雅黑", 13F);