Skip to content

Commit

Permalink
+ added button to clear results in results tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Nockiro committed Aug 12, 2017
1 parent 2d6dc73 commit 7ae70ff
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 19 deletions.
29 changes: 22 additions & 7 deletions PackedFileSearcher/FrmMain.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 6 additions & 8 deletions PackedFileSearcher/FrmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ private void btn_abort_Click(object sender, EventArgs e)
}
}
}

private void btn_clearResults_Click(object sender, EventArgs e) => lv_results.Items.Clear();
#endregion
#endregion

Expand Down Expand Up @@ -316,15 +318,11 @@ private void tsm_searchText_Leave(object sender, EventArgs e)
}
#endregion

private void lv_results_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e)
{
btn_copyPath.Enabled = btn_extract.Enabled = btn_deletefile.Enabled = e.IsSelected;
}
private void lv_results_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e) => btn_copyPath.Enabled = btn_extract.Enabled = btn_deletefile.Enabled = e.IsSelected;

private void lv_results_Leave(object sender, EventArgs e)
{
btn_copyPath.Enabled = btn_extract.Enabled = btn_deletefile.Enabled = false;
}
private void lv_results_Leave(object sender, EventArgs e) => btn_copyPath.Enabled = btn_extract.Enabled = btn_deletefile.Enabled = false;

private void tabControl_SelectedIndexChanged(object sender, EventArgs e) => btn_clearResults.Enabled = tabControl.SelectedIndex == 2;
#endregion

#region other listview events (double click, ..)
Expand Down
1 change: 1 addition & 0 deletions PackedFileSearcher/PackedFileSearcher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
<None Include="ico\plus_2.png" />
</ItemGroup>
<ItemGroup>
<None Include="ico\clear.png" />
<None Include="ico\settings_verysmall.png" />
<None Include="ico\settings_small.png" />
<None Include="ico\settings.png" />
Expand Down
4 changes: 2 additions & 2 deletions PackedFileSearcher/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.2.0")]
[assembly: AssemblyFileVersion("1.0.2.0")]
[assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
10 changes: 10 additions & 0 deletions PackedFileSearcher/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions PackedFileSearcher/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@
<data name="minus_2" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\ico\minus_2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="settings_verysmall" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\ico\settings_verysmall.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="addfile" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\ico\addfile.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
Expand Down Expand Up @@ -157,7 +160,7 @@
<data name="minus" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\ico\minus.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="settings_verysmall" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\ico\settings_verysmall.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
<data name="clear" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\ico\clear.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

0 comments on commit 7ae70ff

Please sign in to comment.