mirror of
https://github.com/4sval/FModel.git
synced 2026-04-16 22:46:09 -05:00
filter insensitive support
This commit is contained in:
parent
b94752ab95
commit
d6fb7f4c73
|
|
@ -16,7 +16,7 @@
|
|||
</NuGetPackageImportStamp>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<PublishUrl>publish\</PublishUrl>
|
||||
<Install>false</Install>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Disk</InstallFrom>
|
||||
<UpdateEnabled>true</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
|
|
@ -24,9 +24,9 @@
|
|||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
|
||||
<MapFileExtensions>false</MapFileExtensions>
|
||||
<WebPage>publish.htm</WebPage>
|
||||
<OpenBrowserOnPublish>false</OpenBrowserOnPublish>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
|
|
@ -73,9 +73,7 @@
|
|||
<PropertyGroup>
|
||||
<TargetZone>LocalIntranet</TargetZone>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ApplicationManifest>Properties\app.manifest</ApplicationManifest>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup />
|
||||
<ItemGroup>
|
||||
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
|
|
@ -117,7 +115,6 @@
|
|||
<DesignTime>True</DesignTime>
|
||||
</Compile>
|
||||
<None Include="packages.config" />
|
||||
<None Include="Properties\app.manifest" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
|
|
|
|||
|
|
@ -234,6 +234,18 @@ namespace FModel
|
|||
|
||||
ExtractButton.Enabled = ItemsListBox.SelectedIndex >= 0;
|
||||
}
|
||||
private void ItemsListBox_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (ItemsListBox.SelectedItem != null)
|
||||
{
|
||||
ExtractButton.Enabled = true;
|
||||
}
|
||||
} //NO EXTRACT IF NOTHING SELECTED
|
||||
|
||||
private static bool CaseInsensitiveContains(string text, string value, StringComparison stringComparison = StringComparison.CurrentCultureIgnoreCase)
|
||||
{
|
||||
return text.IndexOf(value, stringComparison) >= 0;
|
||||
} //FILTER INSENSITIVE
|
||||
private void FilterTextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
ItemsListBox.BeginUpdate();
|
||||
|
|
@ -242,7 +254,7 @@ namespace FModel
|
|||
{
|
||||
foreach (string str in afterItems)
|
||||
{
|
||||
if (str.Contains(FilterTextBox.Text))
|
||||
if (CaseInsensitiveContains(str, FilterTextBox.Text))
|
||||
{
|
||||
ItemsListBox.Items.Add(str);
|
||||
}
|
||||
|
|
@ -256,14 +268,7 @@ namespace FModel
|
|||
}
|
||||
}
|
||||
ItemsListBox.EndUpdate();
|
||||
}
|
||||
private void ItemsListBox_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (ItemsListBox.SelectedItem != null)
|
||||
{
|
||||
ExtractButton.Enabled = true;
|
||||
}
|
||||
} //NO EXTRACT IF NOTHING SELECTED
|
||||
} //FILTER METHOD
|
||||
|
||||
public void AppendText(string text, Color color, bool addNewLine = false)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,70 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<assemblyIdentity version="1.0.0.0" name="MyApplication.app" />
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||
<security>
|
||||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<!-- Options du manifeste de contrôle de compte d'utilisateur
|
||||
Si vous souhaitez modifier le niveau du contrôle de compte d'utilisateur Windows, remplacez le
|
||||
nœud requestedExecutionLevel par l'une des propositions suivantes.
|
||||
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
|
||||
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
|
||||
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
|
||||
|
||||
La spécification de l'élément requestedExecutionLevel désactive la virtualisation de fichiers et du Registre.
|
||||
Supprimez cet élément si votre application a besoin de la virtualisation pour des
|
||||
raisons de compatibilité descendante.
|
||||
-->
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
|
||||
</requestedPrivileges>
|
||||
<applicationRequestMinimum>
|
||||
<PermissionSet class="System.Security.PermissionSet" version="1" Unrestricted="true" ID="Custom" SameSite="site" />
|
||||
<defaultAssemblyRequest permissionSetReference="Custom" />
|
||||
</applicationRequestMinimum>
|
||||
</security>
|
||||
</trustInfo>
|
||||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
|
||||
<application>
|
||||
<!-- Liste des versions de Windows pour lesquelles cette application a été testée,
|
||||
et sur lesquelles elle doit fonctionner. Décommentez éléments appropriés,
|
||||
et Windows va automatiquement sélectionner l'environnement le plus compatible. -->
|
||||
<!-- Windows Vista -->
|
||||
<!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->
|
||||
<!-- Windows 7 -->
|
||||
<!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />-->
|
||||
<!-- Windows 8 -->
|
||||
<!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />-->
|
||||
<!-- Windows 8.1 -->
|
||||
<!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />-->
|
||||
<!-- Windows 10 -->
|
||||
<!--<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />-->
|
||||
</application>
|
||||
</compatibility>
|
||||
<!-- Indique que l'application prend en charge DPI et qu'elle n'est pas automatiquement mise à l'échelle par Windows à un niveau de
|
||||
DPI plus élevé. Les applications Windows Presentation Foundation (WPF) prennent automatiquement en charge DPI et n'ont pas besoin
|
||||
d'opter pour ce choix. Les applications Windows Forms qui ciblent .NET Framework 4.6 et qui optent pour ce paramètre, doivent
|
||||
également affecter la valeur 'true' au paramètre 'EnableWindowsFormsHighDpiAutoResizing' dans leur fichier app.config. -->
|
||||
<!--
|
||||
<application xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<windowsSettings>
|
||||
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
|
||||
</windowsSettings>
|
||||
</application>
|
||||
-->
|
||||
<!-- Activer les thèmes pour les contrôles et boîtes de dialogue communes de Windows (Windows XP et version ultérieure) -->
|
||||
<!--
|
||||
<dependency>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity
|
||||
type="win32"
|
||||
name="Microsoft.Windows.Common-Controls"
|
||||
version="6.0.0.0"
|
||||
processorArchitecture="*"
|
||||
publicKeyToken="6595b64144ccf1df"
|
||||
language="*"
|
||||
/>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
-->
|
||||
</assembly>
|
||||
Loading…
Reference in New Issue
Block a user