Skip to content

Commit 016706b

Browse files
committed
Minor UI changes.
1 parent 2653bdf commit 016706b

3 files changed

Lines changed: 32 additions & 23 deletions

File tree

src/QSP/UI/ToLdgModule/AboutPage/AboutPageControl.Designer.cs

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/QSP/UI/UserControls/FuelPlanningControl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ private void Calculate(object sender, EventArgs e)
459459

460460
if (fuelReport.TotalFuelKG > data.MaxFuelKg)
461461
{
462-
MessageBox.Show(InsufficientFuelMsg(
462+
ShowInfo(InsufficientFuelMsg(
463463
fuelReport.TotalFuelKG, data.MaxFuelKg, WeightUnit));
464464
return;
465465
}

src/QSP/UI/Utilities/MsgBoxHelper.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,14 @@ public static DialogResult ShowWarning(string text, string caption = "")
2121
MessageBoxButtons.OK,
2222
MessageBoxIcon.Warning);
2323
}
24+
25+
public static DialogResult ShowInfo(string text, string caption = "")
26+
{
27+
return MessageBox.Show(
28+
text,
29+
caption,
30+
MessageBoxButtons.OK,
31+
MessageBoxIcon.Information);
32+
}
2433
}
2534
}

0 commit comments

Comments
 (0)