diff --git a/Main.Designer.cs b/Main.Designer.cs index c1b374f..0783c50 100644 --- a/Main.Designer.cs +++ b/Main.Designer.cs @@ -97,12 +97,14 @@ private void InitializeComponent() this.Controls.Add(this.CB_Friend); this.Controls.Add(this.B_Friend); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.HelpButton = true; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "Main"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "AC:NL Save Editor"; + this.HelpButtonClicked += new System.ComponentModel.CancelEventHandler(this.clickHelp); this.ResumeLayout(false); } diff --git a/Main.cs b/Main.cs index 56e8d74..eb8881b 100644 --- a/Main.cs +++ b/Main.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.ComponentModel; using System.IO; using System.Linq; using System.Threading; @@ -48,7 +49,6 @@ private void tabMain_DragDrop(object sender, DragEventArgs e) return; } - string path = files[0]; // open first D&D long len = new FileInfo(files[0]).Length; if (len == 0x80000 || len == 0xC0000 || len == 0x121000 || len == 0x130000) // RAM { @@ -152,7 +152,7 @@ private void clickExhibition(object sender, EventArgs e) catch (Exception ex) { // Error - MessageBox.Show("Error:" + Environment.NewLine + ex); + Util.Error("Error:" + Environment.NewLine + ex); } } private void clickGarden(object sender, EventArgs e) @@ -175,7 +175,7 @@ private void clickGarden(object sender, EventArgs e) catch (Exception ex) { // Error - MessageBox.Show("Error:" + Environment.NewLine + ex); + Util.Error("Error:" + Environment.NewLine + ex); } } private void clickFriend(object sender, EventArgs e) @@ -198,8 +198,20 @@ private void clickFriend(object sender, EventArgs e) catch (Exception ex) { // Error - MessageBox.Show("Error:" + Environment.NewLine + ex); + Util.Error("Error:" + Environment.NewLine + ex); } } + + private void clickHelp(object sender, CancelEventArgs e) + { + Util.Alert(String.Format("NLSE - By Kaphotics{0}" + + "{0}" + + "To begin, drag the folder that contains your exported save file (garden.dat) onto the program window.{0}" + + "{0}" + + "Credits:{0}" + + "Big thanks to marc_max (ACNL Save Editor), NeoKamek (LeafTools), and the many other contributors to the scene!", + Environment.NewLine)); + e.Cancel = true; // remove ? cursor + } } }