Убрана зависимость Localization от Windows.Forms.dll
This commit is contained in:
parent
70fc798dd6
commit
7549262e9b
|
|
@ -15,21 +15,13 @@
|
|||
<EmbeddedResource Include="DefaultLang.resources" Visible="false" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<LangFiles Include="..\bin\Lng\Rus\**\*" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="MakeLangResFile" BeforeTargets="BeforeBuild" Inputs="@(LangFiles)" Outputs="DefaultLang.resources">
|
||||
<Exec
|
||||
Command="cd ..\Utils\DefaultLanguageResMaker & LanguageResMaker.exe"
|
||||
Condition="$(OS) == 'Windows_NT'" />
|
||||
<Exec Command="cd ..\Utils\DefaultLanguageResMaker & LanguageResMaker.exe" Condition="$(OS) == 'Windows_NT'" />
|
||||
|
||||
<Exec
|
||||
Command="cd ../Utils/DefaultLanguageResMaker && mono LanguageResMaker.exe"
|
||||
Condition="$(OS) != 'Windows_NT'" />
|
||||
<Exec Command="cd ../Utils/DefaultLanguageResMaker && mono LanguageResMaker.exe" Condition="$(OS) != 'Windows_NT'" />
|
||||
</Target>
|
||||
</Project>
|
||||
|
|
@ -491,7 +491,7 @@ namespace PascalABCCompiler
|
|||
if (col != null)
|
||||
foreach (object ob in col)
|
||||
//не расматриваем формы
|
||||
if (!(ob is System.Windows.Forms.Form))
|
||||
if (ob.GetType().FullName != "System.Windows.Forms.Form")
|
||||
SetTextForAllObjects(ob, prefix);
|
||||
}
|
||||
if (val is IContainer)
|
||||
|
|
@ -500,7 +500,7 @@ namespace PascalABCCompiler
|
|||
if (cont != null)
|
||||
foreach (object ob in cont.Components)
|
||||
//не расматриваем формы
|
||||
if (!(ob is System.Windows.Forms.Form))
|
||||
if (ob.GetType().FullName != "System.Windows.Forms.Form")
|
||||
SetTextForAllObjects(ob, prefix);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue