Skip to content

Commit

Permalink
Show -> ShowDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Manu098vm committed Sep 28, 2023
1 parent 9ae13bb commit e55a5df
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions TeraFinder.Plugins/Forms/EditorForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ private void btnOpenCalculator_Click(object sender, EventArgs e)
calcform.NotLinkedSearch = false;
}

calcform.Show();
calcform.ShowDialog();
}

private void btnOpenRewardCalculator_Click(object sender, EventArgs e)
Expand All @@ -537,7 +537,7 @@ private void btnOpenRewardCalculator_Click(object sender, EventArgs e)
calcform.NotLinkedSearch = false;
}

calcform.Show();
calcform.ShowDialog();
}

private void btnDx_Click(object sender, EventArgs e)
Expand Down Expand Up @@ -571,7 +571,7 @@ private void btnRewards_Click(object sender, EventArgs e)
CurrEncount.IsDistribution ? DistFixedRewards : TeraFixedRewards, CurrEncount.IsDistribution ? DistLotteryRewards : TeraLotteryRewards, 3);

var form = new RewardListForm(Language, lvl0, lvl1, lvl2, lvl3);
form.Show();
form.ShowDialog();
}
}

Expand Down
18 changes: 9 additions & 9 deletions TeraFinder.Plugins/TeraPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ private void AddPluginControl(ToolStripDropDownItem tools)
Plugin.DropDownItems.Add(Flags);
Plugin.DropDownItems.Add(Events);
Connect.Click += (s, e) => LaunchConnector();
Editor.Click += (s, e) => new EditorForm(SAV, PKMEditor, Language, Paldea, Kitakami, Dist, Mighty, TeraFixedRewards, TeraLotteryRewards, DistFixedRewards, DistLotteryRewards, Connection).Show();
Editor.Click += (s, e) => new EditorForm(SAV, PKMEditor, Language, Paldea, Kitakami, Dist, Mighty, TeraFixedRewards, TeraLotteryRewards, DistFixedRewards, DistLotteryRewards, Connection).ShowDialog();
Events.Click += (s, e) => ImportUtil.ImportNews(SAV, ref Dist, ref Mighty, ref DistFixedRewards, ref DistLotteryRewards, language: Language, plugin: true);
Flags.Click += (s, e) => new ProgressForm(SAV, Language,Connection).Show();
Finder.Click += (s, e) => new CheckerForm(PKMEditor!.PreparePKM(), SAV, Language).Show();
Outbreaks.Click += (s, e) => new OutbreakForm(SAV, Language, Connection).Show();
Flags.Click += (s, e) => new ProgressForm(SAV, Language,Connection).ShowDialog();
Finder.Click += (s, e) => new CheckerForm(PKMEditor!.PreparePKM(), SAV, Language).ShowDialog();
Outbreaks.Click += (s, e) => new OutbreakForm(SAV, Language, Connection).ShowDialog();
tools.DropDownItems.Add(Plugin);
}

Expand Down Expand Up @@ -208,13 +208,13 @@ public void LaunchEditor()
public void LaunchCalculator()
{
var editor = new EditorForm(SAV, PKMEditor, Language, Paldea, Kitakami, Dist, Mighty, TeraFixedRewards, TeraLotteryRewards, DistFixedRewards, DistLotteryRewards, Connection);
new CalculatorForm(editor).Show();
new CalculatorForm(editor).ShowDialog();
}

public void LaunchRewardCalculator()
{
var editor = new EditorForm(SAV, PKMEditor, Language, Paldea, Kitakami, Dist, Mighty, TeraFixedRewards, TeraLotteryRewards, DistFixedRewards, DistLotteryRewards, Connection);
new RewardCalcForm(editor).Show();
new RewardCalcForm(editor).ShowDialog();
}

public void LaunchImporter()
Expand All @@ -224,17 +224,17 @@ public void LaunchImporter()

public void LaunchGameEditor()
{
new ProgressForm(SAV, Language,Connection).Show();
new ProgressForm(SAV, Language,Connection).ShowDialog();
}

public void LaunchFinder()
{
new CheckerForm(new PK9 { TrainerTID7 = SAV.TrainerTID7, TrainerSID7 = SAV.TrainerSID7 }, SAV, Language).Show();
new CheckerForm(new PK9 { TrainerTID7 = SAV.TrainerTID7, TrainerSID7 = SAV.TrainerSID7 }, SAV, Language).ShowDialog();
}

public void LaunchMassOutbreakEditor()
{
new OutbreakForm(SAV, Language, Connection).Show();
new OutbreakForm(SAV, Language, Connection).ShowDialog();
}

public ConnectionForm LaunchConnector(Form? parent = null)
Expand Down
2 changes: 1 addition & 1 deletion TeraFinder.Plugins/Utils/GridUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public static void ViewRewards(this DataGridView dataGrid, CalculatorForm f, str
encounter!.IsDistribution ? f.Editor.DistFixedRewards : f.Editor.TeraFixedRewards, encounter!.IsDistribution ? f.Editor.DistLotteryRewards : f.Editor.TeraLotteryRewards, 3);

var form = new RewardListForm(f.Editor.Language, lvl0, lvl1, lvl2, lvl3);
form.Show();
form.ShowDialog();
}
catch (Exception ex)
{
Expand Down

0 comments on commit e55a5df

Please sign in to comment.