Skip to content

Commit

Permalink
yessir
Browse files Browse the repository at this point in the history
  • Loading branch information
ohhsodead committed Feb 2, 2021
1 parent cf3fe57 commit 359d769
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions src/AtomicX/Forms/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -335,15 +335,22 @@ private void TextBoxSearch_TextChanged(object sender, EventArgs e)
{
FilterModsName = TextBoxSearch.Text;

LoadMods(
FilterModsName,
FilterModsGameType,
FilterModType);
LoadMods(FilterModsName,
FilterModsGameType,
FilterModType);
}

private void ComboBoxGameType_SelectedIndexChanged(object sender, EventArgs e)
{
FilterModsGameType = ComboBoxGameType.SelectedItem.ToString();
switch (ComboBoxGameType.SelectedIndex)
{
case 0:
FilterModsGameType = "";
break;
default:
FilterModsGameType = ComboBoxModType.SelectedItem.ToString();
break;
}

LoadMods(FilterModsName,
FilterModsGameType,
Expand All @@ -352,13 +359,14 @@ private void ComboBoxGameType_SelectedIndexChanged(object sender, EventArgs e)

private void ComboBoxModType_SelectedIndexChanged(object sender, EventArgs e)
{
if (ComboBoxModType.SelectedIndex == 0)
{
FilterModType = "";
}
else
switch (ComboBoxModType.SelectedIndex)
{
FilterModType = ComboBoxModType.SelectedItem.ToString();
case 0:
FilterModType = "";
break;
default:
FilterModType = ComboBoxModType.SelectedItem.ToString();
break;
}

LoadMods(FilterModsName,
Expand Down

0 comments on commit 359d769

Please sign in to comment.