浏览代码

修复bug 加载空库时 规则调整按钮未置灰

cxs 2 年之前
父节点
当前提交
8734b6f1ac
共有 2 个文件被更改,包括 10 次插入1 次删除
  1. 6 0
      OTSPartA_STDEditor/OTSPartA_STDEditor.csproj
  2. 4 1
      OTSPartA_STDEditor/STDRuleslist.cs

+ 6 - 0
OTSPartA_STDEditor/OTSPartA_STDEditor.csproj

@@ -172,6 +172,9 @@
     <Compile Include="Form_PeriodicTable.Designer.cs">
     <Compile Include="Form_PeriodicTable.Designer.cs">
       <DependentUpon>Form_PeriodicTable.cs</DependentUpon>
       <DependentUpon>Form_PeriodicTable.cs</DependentUpon>
     </Compile>
     </Compile>
+    <Compile Include="Frm_UserProgress.cs">
+      <SubType>Form</SubType>
+    </Compile>
     <Compile Include="ImportStandardLibraryTypeSelection.cs">
     <Compile Include="ImportStandardLibraryTypeSelection.cs">
       <SubType>Form</SubType>
       <SubType>Form</SubType>
     </Compile>
     </Compile>
@@ -267,6 +270,9 @@
     <EmbeddedResource Include="Form_PeriodicTable.resx">
     <EmbeddedResource Include="Form_PeriodicTable.resx">
       <DependentUpon>Form_PeriodicTable.cs</DependentUpon>
       <DependentUpon>Form_PeriodicTable.cs</DependentUpon>
     </EmbeddedResource>
     </EmbeddedResource>
+    <EmbeddedResource Include="Frm_UserProgress.resx">
+      <DependentUpon>Frm_UserProgress.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="ImportStandardLibraryTypeSelection.resx">
     <EmbeddedResource Include="ImportStandardLibraryTypeSelection.resx">
       <DependentUpon>ImportStandardLibraryTypeSelection.cs</DependentUpon>
       <DependentUpon>ImportStandardLibraryTypeSelection.cs</DependentUpon>
     </EmbeddedResource>
     </EmbeddedResource>

+ 4 - 1
OTSPartA_STDEditor/STDRuleslist.cs

@@ -89,9 +89,12 @@ namespace OTSPartA_STDEditor
 
 
             Grid_Minerals.Controller.AddController(m_ValueChangedEvent);
             Grid_Minerals.Controller.AddController(m_ValueChangedEvent);
             Grid_Minerals.FixedRows = 1;// 第一行是列标题不可以滚动
             Grid_Minerals.FixedRows = 1;// 第一行是列标题不可以滚动
-
             Grid_Minerals.Selection.FocusStyle = FocusStyle.None;
             Grid_Minerals.Selection.FocusStyle = FocusStyle.None;
 
 
+
+
+            button_UpOrder.Enabled = false;
+            button_DownOrder.Enabled = false;
         }
         }
         /// <summary>
         /// <summary>
         /// [颜色:16进制转成RGB]
         /// [颜色:16进制转成RGB]