diff --git a/PCK-Studio/MainForm.cs b/PCK-Studio/MainForm.cs index 6dd6aef1..be7512d2 100644 --- a/PCK-Studio/MainForm.cs +++ b/PCK-Studio/MainForm.cs @@ -88,7 +88,7 @@ namespace PckStudio }; } - public void LoadFromPath(string filepath) + public void LoadPck(string filepath) { treeViewMain.Nodes.Clear(); currentPCK = openPck(filepath); @@ -147,7 +147,7 @@ namespace PckStudio ofd.Filter = "PCK (Minecraft Console Package)|*.pck"; if (ofd.ShowDialog() == DialogResult.OK) { - LoadFromPath(ofd.FileName); + LoadPck(ofd.FileName); } } } @@ -1887,7 +1887,7 @@ namespace PckStudio string[] Filepaths = (string[])e.Data.GetData(DataFormats.FileDrop, false); if (Filepaths.Length > 1) MessageBox.Show("Only one pck file at a time is currently supported"); - LoadFromPath(Filepaths[0]); + LoadPck(Filepaths[0]); } private void OpenPck_DragLeave(object sender, EventArgs e) diff --git a/PCK-Studio/Program.cs b/PCK-Studio/Program.cs index e6a93ef4..4f1f497a 100644 --- a/PCK-Studio/Program.cs +++ b/PCK-Studio/Program.cs @@ -23,10 +23,10 @@ namespace PckStudio System.Globalization.CultureInfo.CurrentCulture.NumberFormat = System.Globalization.NumberFormatInfo.InvariantInfo; - var f = new MainForm(); + var mianForm = new MainForm(); if (args.Length > 0 && File.Exists(args[0]) && args[0].EndsWith(".pck")) - f.LoadFromPath(args[0]); - Application.Run(f); + mianForm.LoadPck(args[0]); + Application.Run(mianForm); } } }