-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Seed is now loaded from the save file directly instead of using the c…
…ustom logic to track seed. Added a new About form to display license/thanks.
- Loading branch information
Peter Corcoran
committed
Oct 10, 2019
1 parent
8bddc33
commit 6d329bb
Showing
10 changed files
with
1,807 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Data; | ||
using System.Diagnostics; | ||
using System.Drawing; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Reflection; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows.Forms; | ||
|
||
namespace NoitaSaveManager | ||
{ | ||
public partial class AboutForm : Form | ||
{ | ||
public AboutForm() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private void AboutForm_Load(object sender, EventArgs e) | ||
{ | ||
label1.Text = FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).FileVersion; | ||
label1.Text += " by R4wizard"; | ||
|
||
if(File.Exists("THANKS")) | ||
textBox1.Text = File.ReadAllText("THANKS"); | ||
|
||
if (File.Exists("LICENSE")) | ||
textBox2.Text = File.ReadAllText("LICENSE"); | ||
} | ||
|
||
private void button1_Click(object sender, EventArgs e) | ||
{ | ||
Close(); | ||
} | ||
|
||
private void textBox1_Click(object sender, EventArgs e) | ||
{ | ||
textBox1.SelectAll(); | ||
} | ||
|
||
private void textBox2_Click(object sender, EventArgs e) | ||
{ | ||
textBox2.SelectAll(); | ||
} | ||
} | ||
} |
Oops, something went wrong.