Browse Source

组功能调整

cxs 2 years ago
parent
commit
939a1672fb
2 changed files with 6 additions and 1 deletions
  1. 4 0
      OTSPartA_STDEditor/Form_GroupId.Designer.cs
  2. 2 1
      OTSPartA_STDEditor/Form_GroupId.cs

+ 4 - 0
OTSPartA_STDEditor/Form_GroupId.Designer.cs

@@ -99,6 +99,7 @@
             // 
             // button_up
             // 
+            this.button_up.Enabled = false;
             this.button_up.Font = new System.Drawing.Font("华文彩云", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.button_up.Location = new System.Drawing.Point(6, 56);
             this.button_up.Name = "button_up";
@@ -106,10 +107,12 @@
             this.button_up.TabIndex = 9;
             this.button_up.Text = "↑";
             this.button_up.UseVisualStyleBackColor = true;
+            this.button_up.Visible = false;
             this.button_up.Click += new System.EventHandler(this.button_up_Click);
             // 
             // button_down
             // 
+            this.button_down.Enabled = false;
             this.button_down.Font = new System.Drawing.Font("华文彩云", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.button_down.Location = new System.Drawing.Point(6, 174);
             this.button_down.Name = "button_down";
@@ -117,6 +120,7 @@
             this.button_down.TabIndex = 10;
             this.button_down.Text = "↓";
             this.button_down.UseVisualStyleBackColor = true;
+            this.button_down.Visible = false;
             this.button_down.Click += new System.EventHandler(this.button_down_Click);
             // 
             // Form_GroupId

+ 2 - 1
OTSPartA_STDEditor/Form_GroupId.cs

@@ -241,7 +241,8 @@ namespace OTSPartA_STDEditor
         {
             lan = new Language(this);
             table_GroupId = lan.GetNameTable("Form_GroupId");
-
+            button_up.Enabled = false;
+            button_down.Enabled = false;
             bool result = LoadDataFromDb(MineralGroupDBAddress); 
             if(result)
             {