refactor: 插件 UI 从 WinForms 迁移到 CycleGUI,并修复代码质量问题
将 StandardScene 各插件的配置/监控窗体从 WinForms 迁移到 CycleGUI(删除 .Designer.cs/.resx,重写为 PanelBuilder 立即模式 UI,新增 CycleUiHelper 统一对话框)。 同时修复代码审核中的问题: - 后台文件写入加锁 + try/catch(ButtonBoxManager / DoorManager,对齐 LoopViewer.SaveTasks 模式) - CoderFieldsMetadata.cs 启用 #nullable enable,消除 CS8632 警告 - DummyCar 移除已废弃的 rightClickAction()/SetPosition() - CarRemoteHelper.OpenVehicleWebPage 的 Process.Start 加 try/catch - 重命名名不副实的 Mstsc()(现为打开网页) - 统一弃元命名为 _ - TrafficInterlockViewer 改用稳定 Id(GUID)做选择/编辑,替代行索引 - csproj 改用 $(CGUILibDir) 解析 CycleGUI,绝对路径收敛到 Directory.Build.props 构建:dotnet build StandardScene.sln → 0 错误,30 警告(均为历史遗留)。 注:static 单例状态重构(审核第 8 项)暂未处理,留待单独任务。
This commit is contained in:
@@ -1,608 +0,0 @@
|
||||
namespace StandardScene.ExtendDevice.ButtonBox
|
||||
{
|
||||
partial class ButtonBoxManager
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.buttonBoxListView = new System.Windows.Forms.ListView();
|
||||
this.columnHeaderBoxIndex = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.columnHeaderIp = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.columnHeaderPort = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.columnHeaderType = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.groupBoxButtonBox = new System.Windows.Forms.GroupBox();
|
||||
this.btnSaveButtonBox = new System.Windows.Forms.Button();
|
||||
this.btnDeleteButtonBox = new System.Windows.Forms.Button();
|
||||
this.btnAddButtonBox = new System.Windows.Forms.Button();
|
||||
this.labelType = new System.Windows.Forms.Label();
|
||||
this.comboBoxType = new System.Windows.Forms.ComboBox();
|
||||
this.labelBoxIndex = new System.Windows.Forms.Label();
|
||||
this.textBoxBoxIndex = new System.Windows.Forms.TextBox();
|
||||
this.labelPort = new System.Windows.Forms.Label();
|
||||
this.textBoxPort = new System.Windows.Forms.TextBox();
|
||||
this.labelIp = new System.Windows.Forms.Label();
|
||||
this.textBoxIp = new System.Windows.Forms.TextBox();
|
||||
this.buttonListView = new System.Windows.Forms.ListView();
|
||||
this.columnHeaderButtonIndex = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.columnHeaderTriggerMission = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.columnHeaderTriggerMethod = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.columnHeaderTriggerMethodParams = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.columnHeaderTriggerState = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.columnHeaderTriggerDelay = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.groupBoxButton = new System.Windows.Forms.GroupBox();
|
||||
this.btnSaveButton = new System.Windows.Forms.Button();
|
||||
this.btnDeleteButton = new System.Windows.Forms.Button();
|
||||
this.btnAddButton = new System.Windows.Forms.Button();
|
||||
this.labelTriggerMethodParams = new System.Windows.Forms.Label();
|
||||
this.textBoxTriggerMethodParams = new System.Windows.Forms.TextBox();
|
||||
this.labelTriggerMethod = new System.Windows.Forms.Label();
|
||||
this.textBoxTriggerMethod = new System.Windows.Forms.TextBox();
|
||||
this.labelTriggerMission = new System.Windows.Forms.Label();
|
||||
this.textBoxTriggerMission = new System.Windows.Forms.TextBox();
|
||||
this.labelButtonIndex = new System.Windows.Forms.Label();
|
||||
this.textBoxButtonIndex = new System.Windows.Forms.TextBox();
|
||||
this.labelTriggerState = new System.Windows.Forms.Label();
|
||||
this.comboBoxTriggerState = new System.Windows.Forms.ComboBox();
|
||||
this.labelTriggerDelay = new System.Windows.Forms.Label();
|
||||
this.textBoxTriggerDelay = new System.Windows.Forms.TextBox();
|
||||
this.labelTitle = new System.Windows.Forms.Label();
|
||||
this.groupBoxButtonBox.SuspendLayout();
|
||||
this.groupBoxButton.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// buttonBoxListView
|
||||
//
|
||||
this.buttonBoxListView.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.buttonBoxListView.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.buttonBoxListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
|
||||
this.columnHeaderBoxIndex,
|
||||
this.columnHeaderIp,
|
||||
this.columnHeaderPort,
|
||||
this.columnHeaderType});
|
||||
this.buttonBoxListView.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.buttonBoxListView.FullRowSelect = true;
|
||||
this.buttonBoxListView.GridLines = true;
|
||||
this.buttonBoxListView.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
|
||||
this.buttonBoxListView.HideSelection = false;
|
||||
this.buttonBoxListView.Location = new System.Drawing.Point(15, 55);
|
||||
this.buttonBoxListView.MultiSelect = false;
|
||||
this.buttonBoxListView.Name = "buttonBoxListView";
|
||||
this.buttonBoxListView.OwnerDraw = true;
|
||||
this.buttonBoxListView.Size = new System.Drawing.Size(450, 290);
|
||||
this.buttonBoxListView.TabIndex = 0;
|
||||
this.buttonBoxListView.UseCompatibleStateImageBehavior = false;
|
||||
this.buttonBoxListView.View = System.Windows.Forms.View.Details;
|
||||
this.buttonBoxListView.SelectedIndexChanged += new System.EventHandler(this.buttonBoxListView_SelectedIndexChanged);
|
||||
//
|
||||
// columnHeaderBoxIndex
|
||||
//
|
||||
this.columnHeaderBoxIndex.Text = "编码";
|
||||
this.columnHeaderBoxIndex.Width = 70;
|
||||
//
|
||||
// columnHeaderIp
|
||||
//
|
||||
this.columnHeaderIp.Text = "IP地址";
|
||||
this.columnHeaderIp.Width = 130;
|
||||
//
|
||||
// columnHeaderPort
|
||||
//
|
||||
this.columnHeaderPort.Text = "端口";
|
||||
this.columnHeaderPort.Width = 90;
|
||||
//
|
||||
// columnHeaderType
|
||||
//
|
||||
this.columnHeaderType.Text = "类型";
|
||||
this.columnHeaderType.Width = 140;
|
||||
//
|
||||
// groupBoxButtonBox
|
||||
//
|
||||
this.groupBoxButtonBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.groupBoxButtonBox.Controls.Add(this.btnSaveButtonBox);
|
||||
this.groupBoxButtonBox.Controls.Add(this.btnDeleteButtonBox);
|
||||
this.groupBoxButtonBox.Controls.Add(this.btnAddButtonBox);
|
||||
this.groupBoxButtonBox.Controls.Add(this.labelType);
|
||||
this.groupBoxButtonBox.Controls.Add(this.comboBoxType);
|
||||
this.groupBoxButtonBox.Controls.Add(this.labelBoxIndex);
|
||||
this.groupBoxButtonBox.Controls.Add(this.textBoxBoxIndex);
|
||||
this.groupBoxButtonBox.Controls.Add(this.labelPort);
|
||||
this.groupBoxButtonBox.Controls.Add(this.textBoxPort);
|
||||
this.groupBoxButtonBox.Controls.Add(this.labelIp);
|
||||
this.groupBoxButtonBox.Controls.Add(this.textBoxIp);
|
||||
this.groupBoxButtonBox.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.groupBoxButtonBox.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(68)))), ((int)(((byte)(68)))));
|
||||
this.groupBoxButtonBox.Location = new System.Drawing.Point(15, 360);
|
||||
this.groupBoxButtonBox.Name = "groupBoxButtonBox";
|
||||
this.groupBoxButtonBox.Padding = new System.Windows.Forms.Padding(12, 10, 12, 12);
|
||||
this.groupBoxButtonBox.Size = new System.Drawing.Size(450, 250);
|
||||
this.groupBoxButtonBox.TabIndex = 1;
|
||||
this.groupBoxButtonBox.TabStop = false;
|
||||
this.groupBoxButtonBox.Text = "按钮盒信息";
|
||||
//
|
||||
// btnSaveButtonBox
|
||||
//
|
||||
this.btnSaveButtonBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(122)))), ((int)(((byte)(204)))));
|
||||
this.btnSaveButtonBox.FlatAppearance.BorderSize = 0;
|
||||
this.btnSaveButtonBox.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(92)))), ((int)(((byte)(153)))));
|
||||
this.btnSaveButtonBox.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(102)))), ((int)(((byte)(170)))));
|
||||
this.btnSaveButtonBox.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnSaveButtonBox.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnSaveButtonBox.ForeColor = System.Drawing.Color.White;
|
||||
this.btnSaveButtonBox.Location = new System.Drawing.Point(330, 200);
|
||||
this.btnSaveButtonBox.Name = "btnSaveButtonBox";
|
||||
this.btnSaveButtonBox.Size = new System.Drawing.Size(100, 38);
|
||||
this.btnSaveButtonBox.TabIndex = 10;
|
||||
this.btnSaveButtonBox.Text = "保存";
|
||||
this.btnSaveButtonBox.UseVisualStyleBackColor = false;
|
||||
this.btnSaveButtonBox.Click += new System.EventHandler(this.btnSaveButtonBox_Click);
|
||||
//
|
||||
// btnDeleteButtonBox
|
||||
//
|
||||
this.btnDeleteButtonBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(53)))), ((int)(((byte)(69)))));
|
||||
this.btnDeleteButtonBox.FlatAppearance.BorderSize = 0;
|
||||
this.btnDeleteButtonBox.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(165)))), ((int)(((byte)(40)))), ((int)(((byte)(52)))));
|
||||
this.btnDeleteButtonBox.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(187)))), ((int)(((byte)(45)))), ((int)(((byte)(59)))));
|
||||
this.btnDeleteButtonBox.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnDeleteButtonBox.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnDeleteButtonBox.ForeColor = System.Drawing.Color.White;
|
||||
this.btnDeleteButtonBox.Location = new System.Drawing.Point(220, 200);
|
||||
this.btnDeleteButtonBox.Name = "btnDeleteButtonBox";
|
||||
this.btnDeleteButtonBox.Size = new System.Drawing.Size(100, 38);
|
||||
this.btnDeleteButtonBox.TabIndex = 9;
|
||||
this.btnDeleteButtonBox.Text = "删除";
|
||||
this.btnDeleteButtonBox.UseVisualStyleBackColor = false;
|
||||
this.btnDeleteButtonBox.Click += new System.EventHandler(this.btnDeleteButtonBox_Click);
|
||||
//
|
||||
// btnAddButtonBox
|
||||
//
|
||||
this.btnAddButtonBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(167)))), ((int)(((byte)(69)))));
|
||||
this.btnAddButtonBox.FlatAppearance.BorderSize = 0;
|
||||
this.btnAddButtonBox.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(125)))), ((int)(((byte)(52)))));
|
||||
this.btnAddButtonBox.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(33)))), ((int)(((byte)(136)))), ((int)(((byte)(56)))));
|
||||
this.btnAddButtonBox.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnAddButtonBox.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnAddButtonBox.ForeColor = System.Drawing.Color.White;
|
||||
this.btnAddButtonBox.Location = new System.Drawing.Point(110, 200);
|
||||
this.btnAddButtonBox.Name = "btnAddButtonBox";
|
||||
this.btnAddButtonBox.Size = new System.Drawing.Size(100, 38);
|
||||
this.btnAddButtonBox.TabIndex = 8;
|
||||
this.btnAddButtonBox.Text = "添加";
|
||||
this.btnAddButtonBox.UseVisualStyleBackColor = false;
|
||||
this.btnAddButtonBox.Click += new System.EventHandler(this.btnAddButtonBox_Click);
|
||||
//
|
||||
// labelType
|
||||
//
|
||||
this.labelType.AutoSize = true;
|
||||
this.labelType.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.labelType.Location = new System.Drawing.Point(28, 168);
|
||||
this.labelType.Name = "labelType";
|
||||
this.labelType.Size = new System.Drawing.Size(65, 24);
|
||||
this.labelType.TabIndex = 7;
|
||||
this.labelType.Text = "类型:";
|
||||
//
|
||||
// comboBoxType
|
||||
//
|
||||
this.comboBoxType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.comboBoxType.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.comboBoxType.FormattingEnabled = true;
|
||||
this.comboBoxType.Location = new System.Drawing.Point(110, 165);
|
||||
this.comboBoxType.Name = "comboBoxType";
|
||||
this.comboBoxType.Size = new System.Drawing.Size(320, 32);
|
||||
this.comboBoxType.TabIndex = 6;
|
||||
//
|
||||
// labelBoxIndex
|
||||
//
|
||||
this.labelBoxIndex.AutoSize = true;
|
||||
this.labelBoxIndex.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.labelBoxIndex.Location = new System.Drawing.Point(28, 48);
|
||||
this.labelBoxIndex.Name = "labelBoxIndex";
|
||||
this.labelBoxIndex.Size = new System.Drawing.Size(65, 24);
|
||||
this.labelBoxIndex.TabIndex = 1;
|
||||
this.labelBoxIndex.Text = "编码:";
|
||||
//
|
||||
// textBoxBoxIndex
|
||||
//
|
||||
this.textBoxBoxIndex.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.textBoxBoxIndex.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.textBoxBoxIndex.Location = new System.Drawing.Point(110, 45);
|
||||
this.textBoxBoxIndex.Name = "textBoxBoxIndex";
|
||||
this.textBoxBoxIndex.Size = new System.Drawing.Size(320, 30);
|
||||
this.textBoxBoxIndex.TabIndex = 0;
|
||||
//
|
||||
// labelIp
|
||||
//
|
||||
this.labelIp.AutoSize = true;
|
||||
this.labelIp.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.labelIp.Location = new System.Drawing.Point(18, 88);
|
||||
this.labelIp.Name = "labelIp";
|
||||
this.labelIp.Size = new System.Drawing.Size(85, 24);
|
||||
this.labelIp.TabIndex = 3;
|
||||
this.labelIp.Text = "IP地址:";
|
||||
//
|
||||
// textBoxIp
|
||||
//
|
||||
this.textBoxIp.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.textBoxIp.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.textBoxIp.Location = new System.Drawing.Point(110, 85);
|
||||
this.textBoxIp.Name = "textBoxIp";
|
||||
this.textBoxIp.Size = new System.Drawing.Size(320, 30);
|
||||
this.textBoxIp.TabIndex = 2;
|
||||
this.textBoxIp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
//
|
||||
// labelPort
|
||||
//
|
||||
this.labelPort.AutoSize = true;
|
||||
this.labelPort.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.labelPort.Location = new System.Drawing.Point(28, 128);
|
||||
this.labelPort.Name = "labelPort";
|
||||
this.labelPort.Size = new System.Drawing.Size(65, 24);
|
||||
this.labelPort.TabIndex = 5;
|
||||
this.labelPort.Text = "端口:";
|
||||
//
|
||||
// textBoxPort
|
||||
//
|
||||
this.textBoxPort.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.textBoxPort.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.textBoxPort.Location = new System.Drawing.Point(110, 125);
|
||||
this.textBoxPort.Name = "textBoxPort";
|
||||
this.textBoxPort.Size = new System.Drawing.Size(320, 30);
|
||||
this.textBoxPort.TabIndex = 4;
|
||||
//
|
||||
// buttonListView
|
||||
//
|
||||
this.buttonListView.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.buttonListView.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.buttonListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
|
||||
this.columnHeaderButtonIndex,
|
||||
this.columnHeaderTriggerState,
|
||||
this.columnHeaderTriggerDelay,
|
||||
this.columnHeaderTriggerMission,
|
||||
this.columnHeaderTriggerMethod,
|
||||
this.columnHeaderTriggerMethodParams});
|
||||
this.buttonListView.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.buttonListView.FullRowSelect = true;
|
||||
this.buttonListView.GridLines = true;
|
||||
this.buttonListView.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
|
||||
this.buttonListView.HideSelection = false;
|
||||
this.buttonListView.Location = new System.Drawing.Point(483, 55);
|
||||
this.buttonListView.MultiSelect = false;
|
||||
this.buttonListView.Name = "buttonListView";
|
||||
this.buttonListView.OwnerDraw = true;
|
||||
this.buttonListView.Size = new System.Drawing.Size(700, 290);
|
||||
this.buttonListView.TabIndex = 2;
|
||||
this.buttonListView.UseCompatibleStateImageBehavior = false;
|
||||
this.buttonListView.View = System.Windows.Forms.View.Details;
|
||||
this.buttonListView.SelectedIndexChanged += new System.EventHandler(this.buttonListView_SelectedIndexChanged);
|
||||
//
|
||||
// columnHeaderButtonIndex
|
||||
//
|
||||
this.columnHeaderButtonIndex.Text = "编码";
|
||||
this.columnHeaderButtonIndex.Width = 70;
|
||||
//
|
||||
// columnHeaderTriggerState
|
||||
//
|
||||
this.columnHeaderTriggerState.Text = "触发状态";
|
||||
this.columnHeaderTriggerState.Width = 100;
|
||||
//
|
||||
// columnHeaderTriggerDelay
|
||||
//
|
||||
this.columnHeaderTriggerDelay.Text = "触发延迟";
|
||||
this.columnHeaderTriggerDelay.Width = 90;
|
||||
//
|
||||
// columnHeaderTriggerMission
|
||||
//
|
||||
this.columnHeaderTriggerMission.Text = "触发任务";
|
||||
this.columnHeaderTriggerMission.Width = 140;
|
||||
//
|
||||
// columnHeaderTriggerMethod
|
||||
//
|
||||
this.columnHeaderTriggerMethod.Text = "触发方法";
|
||||
this.columnHeaderTriggerMethod.Width = 140;
|
||||
//
|
||||
// columnHeaderTriggerMethodParams
|
||||
//
|
||||
this.columnHeaderTriggerMethodParams.Text = "方法参数";
|
||||
this.columnHeaderTriggerMethodParams.Width = 160;
|
||||
//
|
||||
// groupBoxButton
|
||||
//
|
||||
this.groupBoxButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.groupBoxButton.Controls.Add(this.btnSaveButton);
|
||||
this.groupBoxButton.Controls.Add(this.btnDeleteButton);
|
||||
this.groupBoxButton.Controls.Add(this.btnAddButton);
|
||||
this.groupBoxButton.Controls.Add(this.labelTriggerMethodParams);
|
||||
this.groupBoxButton.Controls.Add(this.textBoxTriggerMethodParams);
|
||||
this.groupBoxButton.Controls.Add(this.labelTriggerMethod);
|
||||
this.groupBoxButton.Controls.Add(this.textBoxTriggerMethod);
|
||||
this.groupBoxButton.Controls.Add(this.labelTriggerMission);
|
||||
this.groupBoxButton.Controls.Add(this.textBoxTriggerMission);
|
||||
this.groupBoxButton.Controls.Add(this.labelButtonIndex);
|
||||
this.groupBoxButton.Controls.Add(this.textBoxButtonIndex);
|
||||
this.groupBoxButton.Controls.Add(this.labelTriggerState);
|
||||
this.groupBoxButton.Controls.Add(this.comboBoxTriggerState);
|
||||
this.groupBoxButton.Controls.Add(this.labelTriggerDelay);
|
||||
this.groupBoxButton.Controls.Add(this.textBoxTriggerDelay);
|
||||
this.groupBoxButton.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.groupBoxButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(68)))), ((int)(((byte)(68)))));
|
||||
this.groupBoxButton.Location = new System.Drawing.Point(483, 360);
|
||||
this.groupBoxButton.Name = "groupBoxButton";
|
||||
this.groupBoxButton.Padding = new System.Windows.Forms.Padding(12, 10, 12, 12);
|
||||
this.groupBoxButton.Size = new System.Drawing.Size(700, 250);
|
||||
this.groupBoxButton.TabIndex = 3;
|
||||
this.groupBoxButton.TabStop = false;
|
||||
this.groupBoxButton.Text = "按钮信息";
|
||||
//
|
||||
// btnSaveButton
|
||||
//
|
||||
this.btnSaveButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(122)))), ((int)(((byte)(204)))));
|
||||
this.btnSaveButton.FlatAppearance.BorderSize = 0;
|
||||
this.btnSaveButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(92)))), ((int)(((byte)(153)))));
|
||||
this.btnSaveButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(102)))), ((int)(((byte)(170)))));
|
||||
this.btnSaveButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnSaveButton.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnSaveButton.ForeColor = System.Drawing.Color.White;
|
||||
this.btnSaveButton.Location = new System.Drawing.Point(580, 180);
|
||||
this.btnSaveButton.Name = "btnSaveButton";
|
||||
this.btnSaveButton.Size = new System.Drawing.Size(100, 38);
|
||||
this.btnSaveButton.TabIndex = 13;
|
||||
this.btnSaveButton.Text = "保存";
|
||||
this.btnSaveButton.UseVisualStyleBackColor = false;
|
||||
this.btnSaveButton.Click += new System.EventHandler(this.btnSaveButton_Click);
|
||||
//
|
||||
// btnDeleteButton
|
||||
//
|
||||
this.btnDeleteButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(53)))), ((int)(((byte)(69)))));
|
||||
this.btnDeleteButton.FlatAppearance.BorderSize = 0;
|
||||
this.btnDeleteButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(165)))), ((int)(((byte)(40)))), ((int)(((byte)(52)))));
|
||||
this.btnDeleteButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(187)))), ((int)(((byte)(45)))), ((int)(((byte)(59)))));
|
||||
this.btnDeleteButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnDeleteButton.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnDeleteButton.ForeColor = System.Drawing.Color.White;
|
||||
this.btnDeleteButton.Location = new System.Drawing.Point(470, 180);
|
||||
this.btnDeleteButton.Name = "btnDeleteButton";
|
||||
this.btnDeleteButton.Size = new System.Drawing.Size(100, 38);
|
||||
this.btnDeleteButton.TabIndex = 12;
|
||||
this.btnDeleteButton.Text = "删除";
|
||||
this.btnDeleteButton.UseVisualStyleBackColor = false;
|
||||
this.btnDeleteButton.Click += new System.EventHandler(this.btnDeleteButton_Click);
|
||||
//
|
||||
// btnAddButton
|
||||
//
|
||||
this.btnAddButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(167)))), ((int)(((byte)(69)))));
|
||||
this.btnAddButton.FlatAppearance.BorderSize = 0;
|
||||
this.btnAddButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(125)))), ((int)(((byte)(52)))));
|
||||
this.btnAddButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(33)))), ((int)(((byte)(136)))), ((int)(((byte)(56)))));
|
||||
this.btnAddButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnAddButton.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnAddButton.ForeColor = System.Drawing.Color.White;
|
||||
this.btnAddButton.Location = new System.Drawing.Point(360, 180);
|
||||
this.btnAddButton.Name = "btnAddButton";
|
||||
this.btnAddButton.Size = new System.Drawing.Size(100, 38);
|
||||
this.btnAddButton.TabIndex = 11;
|
||||
this.btnAddButton.Text = "添加";
|
||||
this.btnAddButton.UseVisualStyleBackColor = false;
|
||||
this.btnAddButton.Click += new System.EventHandler(this.btnAddButton_Click);
|
||||
//
|
||||
// labelTriggerMethodParams
|
||||
//
|
||||
this.labelTriggerMethodParams.AutoSize = true;
|
||||
this.labelTriggerMethodParams.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.labelTriggerMethodParams.Location = new System.Drawing.Point(370, 128);
|
||||
this.labelTriggerMethodParams.Name = "labelTriggerMethodParams";
|
||||
this.labelTriggerMethodParams.Size = new System.Drawing.Size(103, 24);
|
||||
this.labelTriggerMethodParams.TabIndex = 11;
|
||||
this.labelTriggerMethodParams.Text = "方法参数:";
|
||||
//
|
||||
// textBoxTriggerMethodParams
|
||||
//
|
||||
this.textBoxTriggerMethodParams.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.textBoxTriggerMethodParams.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.textBoxTriggerMethodParams.Location = new System.Drawing.Point(490, 125);
|
||||
this.textBoxTriggerMethodParams.Name = "textBoxTriggerMethodParams";
|
||||
this.textBoxTriggerMethodParams.Size = new System.Drawing.Size(190, 30);
|
||||
this.textBoxTriggerMethodParams.TabIndex = 10;
|
||||
//
|
||||
// labelTriggerState
|
||||
//
|
||||
this.labelTriggerState.AutoSize = true;
|
||||
this.labelTriggerState.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.labelTriggerState.Location = new System.Drawing.Point(370, 48);
|
||||
this.labelTriggerState.Name = "labelTriggerState";
|
||||
this.labelTriggerState.Size = new System.Drawing.Size(103, 24);
|
||||
this.labelTriggerState.TabIndex = 3;
|
||||
this.labelTriggerState.Text = "触发状态:";
|
||||
//
|
||||
// comboBoxTriggerState
|
||||
//
|
||||
this.comboBoxTriggerState.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.comboBoxTriggerState.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.comboBoxTriggerState.FormattingEnabled = true;
|
||||
this.comboBoxTriggerState.Location = new System.Drawing.Point(490, 45);
|
||||
this.comboBoxTriggerState.Name = "comboBoxTriggerState";
|
||||
this.comboBoxTriggerState.Size = new System.Drawing.Size(190, 32);
|
||||
this.comboBoxTriggerState.TabIndex = 2;
|
||||
//
|
||||
// labelTriggerDelay
|
||||
//
|
||||
this.labelTriggerDelay.AutoSize = true;
|
||||
this.labelTriggerDelay.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.labelTriggerDelay.Location = new System.Drawing.Point(28, 88);
|
||||
this.labelTriggerDelay.Name = "labelTriggerDelay";
|
||||
this.labelTriggerDelay.Size = new System.Drawing.Size(103, 24);
|
||||
this.labelTriggerDelay.TabIndex = 5;
|
||||
this.labelTriggerDelay.Text = "触发延迟:";
|
||||
//
|
||||
// textBoxTriggerDelay
|
||||
//
|
||||
this.textBoxTriggerDelay.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.textBoxTriggerDelay.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.textBoxTriggerDelay.Location = new System.Drawing.Point(150, 85);
|
||||
this.textBoxTriggerDelay.Name = "textBoxTriggerDelay";
|
||||
this.textBoxTriggerDelay.Size = new System.Drawing.Size(200, 30);
|
||||
this.textBoxTriggerDelay.TabIndex = 4;
|
||||
//
|
||||
// labelTriggerMethod
|
||||
//
|
||||
this.labelTriggerMethod.AutoSize = true;
|
||||
this.labelTriggerMethod.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.labelTriggerMethod.Location = new System.Drawing.Point(28, 128);
|
||||
this.labelTriggerMethod.Name = "labelTriggerMethod";
|
||||
this.labelTriggerMethod.Size = new System.Drawing.Size(103, 24);
|
||||
this.labelTriggerMethod.TabIndex = 9;
|
||||
this.labelTriggerMethod.Text = "触发方法:";
|
||||
//
|
||||
// textBoxTriggerMethod
|
||||
//
|
||||
this.textBoxTriggerMethod.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.textBoxTriggerMethod.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.textBoxTriggerMethod.Location = new System.Drawing.Point(150, 125);
|
||||
this.textBoxTriggerMethod.Name = "textBoxTriggerMethod";
|
||||
this.textBoxTriggerMethod.Size = new System.Drawing.Size(200, 30);
|
||||
this.textBoxTriggerMethod.TabIndex = 8;
|
||||
//
|
||||
// labelTriggerMission
|
||||
//
|
||||
this.labelTriggerMission.AutoSize = true;
|
||||
this.labelTriggerMission.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.labelTriggerMission.Location = new System.Drawing.Point(370, 88);
|
||||
this.labelTriggerMission.Name = "labelTriggerMission";
|
||||
this.labelTriggerMission.Size = new System.Drawing.Size(103, 24);
|
||||
this.labelTriggerMission.TabIndex = 7;
|
||||
this.labelTriggerMission.Text = "触发任务:";
|
||||
//
|
||||
// textBoxTriggerMission
|
||||
//
|
||||
this.textBoxTriggerMission.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.textBoxTriggerMission.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.textBoxTriggerMission.Location = new System.Drawing.Point(490, 85);
|
||||
this.textBoxTriggerMission.Name = "textBoxTriggerMission";
|
||||
this.textBoxTriggerMission.Size = new System.Drawing.Size(190, 30);
|
||||
this.textBoxTriggerMission.TabIndex = 6;
|
||||
//
|
||||
// labelButtonIndex
|
||||
//
|
||||
this.labelButtonIndex.AutoSize = true;
|
||||
this.labelButtonIndex.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.labelButtonIndex.Location = new System.Drawing.Point(28, 48);
|
||||
this.labelButtonIndex.Name = "labelButtonIndex";
|
||||
this.labelButtonIndex.Size = new System.Drawing.Size(65, 24);
|
||||
this.labelButtonIndex.TabIndex = 1;
|
||||
this.labelButtonIndex.Text = "编码:";
|
||||
//
|
||||
// textBoxButtonIndex
|
||||
//
|
||||
this.textBoxButtonIndex.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.textBoxButtonIndex.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.textBoxButtonIndex.Location = new System.Drawing.Point(150, 45);
|
||||
this.textBoxButtonIndex.Name = "textBoxButtonIndex";
|
||||
this.textBoxButtonIndex.Size = new System.Drawing.Size(200, 30);
|
||||
this.textBoxButtonIndex.TabIndex = 0;
|
||||
//
|
||||
// labelTitle
|
||||
//
|
||||
this.labelTitle.AutoSize = true;
|
||||
this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.labelTitle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
|
||||
this.labelTitle.Location = new System.Drawing.Point(15, 12);
|
||||
this.labelTitle.Name = "labelTitle";
|
||||
this.labelTitle.Size = new System.Drawing.Size(150, 42);
|
||||
this.labelTitle.TabIndex = 4;
|
||||
this.labelTitle.Text = "按钮盒管理";
|
||||
//
|
||||
// ButtonBoxManager
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(245)))), ((int)(((byte)(245)))), ((int)(((byte)(247)))));
|
||||
this.ClientSize = new System.Drawing.Size(1200, 620);
|
||||
this.Controls.Add(this.labelTitle);
|
||||
this.Controls.Add(this.groupBoxButton);
|
||||
this.Controls.Add(this.buttonListView);
|
||||
this.Controls.Add(this.groupBoxButtonBox);
|
||||
this.Controls.Add(this.buttonBoxListView);
|
||||
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.MinimumSize = new System.Drawing.Size(1200, 620);
|
||||
this.Name = "ButtonBoxManager";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "按钮盒管理";
|
||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ButtonBoxManager_FormClosing);
|
||||
this.Load += new System.EventHandler(this.ButtonBoxManager_Load);
|
||||
this.groupBoxButtonBox.ResumeLayout(false);
|
||||
this.groupBoxButtonBox.PerformLayout();
|
||||
this.groupBoxButton.ResumeLayout(false);
|
||||
this.groupBoxButton.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.ListView buttonBoxListView;
|
||||
private System.Windows.Forms.ColumnHeader columnHeaderBoxIndex;
|
||||
private System.Windows.Forms.ColumnHeader columnHeaderIp;
|
||||
private System.Windows.Forms.ColumnHeader columnHeaderPort;
|
||||
private System.Windows.Forms.ColumnHeader columnHeaderType;
|
||||
private System.Windows.Forms.GroupBox groupBoxButtonBox;
|
||||
private System.Windows.Forms.TextBox textBoxIp;
|
||||
private System.Windows.Forms.Label labelIp;
|
||||
private System.Windows.Forms.Label labelPort;
|
||||
private System.Windows.Forms.TextBox textBoxPort;
|
||||
private System.Windows.Forms.Label labelBoxIndex;
|
||||
private System.Windows.Forms.TextBox textBoxBoxIndex;
|
||||
private System.Windows.Forms.Label labelType;
|
||||
private System.Windows.Forms.ComboBox comboBoxType;
|
||||
private System.Windows.Forms.Button btnAddButtonBox;
|
||||
private System.Windows.Forms.Button btnDeleteButtonBox;
|
||||
private System.Windows.Forms.Button btnSaveButtonBox;
|
||||
private System.Windows.Forms.ListView buttonListView;
|
||||
private System.Windows.Forms.ColumnHeader columnHeaderButtonIndex;
|
||||
private System.Windows.Forms.ColumnHeader columnHeaderTriggerMission;
|
||||
private System.Windows.Forms.ColumnHeader columnHeaderTriggerMethod;
|
||||
private System.Windows.Forms.ColumnHeader columnHeaderTriggerMethodParams;
|
||||
private System.Windows.Forms.GroupBox groupBoxButton;
|
||||
private System.Windows.Forms.Label labelButtonIndex;
|
||||
private System.Windows.Forms.TextBox textBoxButtonIndex;
|
||||
private System.Windows.Forms.Label labelTriggerMission;
|
||||
private System.Windows.Forms.TextBox textBoxTriggerMission;
|
||||
private System.Windows.Forms.Label labelTriggerMethod;
|
||||
private System.Windows.Forms.TextBox textBoxTriggerMethod;
|
||||
private System.Windows.Forms.Label labelTriggerMethodParams;
|
||||
private System.Windows.Forms.TextBox textBoxTriggerMethodParams;
|
||||
private System.Windows.Forms.Label labelTriggerState;
|
||||
private System.Windows.Forms.ComboBox comboBoxTriggerState;
|
||||
private System.Windows.Forms.Label labelTriggerDelay;
|
||||
private System.Windows.Forms.TextBox textBoxTriggerDelay;
|
||||
private System.Windows.Forms.ColumnHeader columnHeaderTriggerState;
|
||||
private System.Windows.Forms.ColumnHeader columnHeaderTriggerDelay;
|
||||
private System.Windows.Forms.Button btnAddButton;
|
||||
private System.Windows.Forms.Button btnDeleteButton;
|
||||
private System.Windows.Forms.Button btnSaveButton;
|
||||
private System.Windows.Forms.Label labelTitle;
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,120 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -6,7 +6,6 @@ using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using LessokajiWeaverUtilities.MagicAttributes;
|
||||
using LessokajiWeaverUtilities.Utilities;
|
||||
using SimpleLite;
|
||||
@@ -768,39 +767,8 @@ namespace StandardScene.ExtendDevice.ButtonBox
|
||||
[I18N.DocumentTranslation(Name = "Open Manager", locale = "en")]
|
||||
public static void OpenViewer()
|
||||
{
|
||||
try
|
||||
{
|
||||
var manager = ButtonBoxManager.Instance;
|
||||
|
||||
// 确保窗体没有被销毁
|
||||
if (manager.IsDisposed)
|
||||
{
|
||||
// 如果窗体被销毁,单例会自动重新创建
|
||||
manager = ButtonBoxManager.Instance;
|
||||
}
|
||||
|
||||
if (manager.Visible)
|
||||
{
|
||||
// 如果界面已经可见,将其激活并置于最前
|
||||
if (manager.WindowState == FormWindowState.Minimized)
|
||||
{
|
||||
manager.WindowState = FormWindowState.Normal;
|
||||
}
|
||||
manager.Activate();
|
||||
manager.BringToFront();
|
||||
}
|
||||
else
|
||||
{
|
||||
// 如果界面不可见,显示它
|
||||
manager.Show();
|
||||
manager.Activate();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show($"打开按钮盒管理界面失败: {ex.Message}", "错误",
|
||||
MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
try { ButtonBoxManager.Open(); }
|
||||
catch (Exception ex) { CycleUiHelper.Alert("错误", $"打开按钮盒管理界面失败: {ex.Message}"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user