Skip to content

Commit

Permalink
Removed redundant code for switching title encoding, store last used …
Browse files Browse the repository at this point in the history
…save format
  • Loading branch information
robxnano committed Sep 1, 2021
1 parent d809ad2 commit 3881e6b
Show file tree
Hide file tree
Showing 10 changed files with 262 additions and 307 deletions.
Binary file modified .vs/MemcardRex/v16/.suo
Binary file not shown.
5 changes: 3 additions & 2 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"ExpandedNodes": [
"",
"\\MemcardRex"
"\\MemcardRex",
"\\MemcardRex\\GUI"
],
"SelectedNode": "\\MemcardRex.sln",
"SelectedNode": "\\MemcardRex\\GUI\\headerWindow.cs",
"PreviewInSolutionExplorer": false
}
Binary file modified .vs/slnx.sqlite
Binary file not shown.
163 changes: 80 additions & 83 deletions MemcardRex/GUI/aboutWindow.Designer.cs

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

13 changes: 3 additions & 10 deletions MemcardRex/GUI/aboutWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,8 @@ public AboutWindow()
/// <param name="compileDate">Date of the compilation</param>
/// <param name="copyrightInfo">The copyright info shown in the bottom area of the dialog</param>
/// <param name="additionalInfo">Used for additional information such as credits</param>
public void initDialog(IWin32Window owner, string applicationName, string applicationVersion, string compileDate, string copyrightInfo, string additionalInfo)
public void initDialog(mainWindow owner, string applicationName, string applicationVersion, string compileDate, string copyrightInfo, string additionalInfo)
{
//Set Window title
this.Text = "About";

//Display program name
appNameLabel.Text = applicationName;

Expand All @@ -48,6 +45,8 @@ public void initDialog(IWin32Window owner, string applicationName, string applic
infoLabel.Text = additionalInfo;

//Resize dialog according to the quantity of text
this.Height = (int)(owner.xScale * 132 + infoLabel.Height);
compileDateLabel.Width = (int)(150 * owner.xScale);

//Display a dialog
this.ShowDialog(owner);
Expand All @@ -58,11 +57,5 @@ private void OKbutton_Click(object sender, EventArgs e)
//Close the form
this.Close();
}

private void AboutWindow_Paint(object sender, PaintEventArgs e)
{
//Draw gray rectangle
//e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(80,80,80)), 0, 0, this.Width, 52);
}
}
}
Loading

0 comments on commit 3881e6b

Please sign in to comment.