From e6e16c36120ca7d87c3b6330aa1a61aa881dc6a5 Mon Sep 17 00:00:00 2001 From: larsbrubaker Date: Mon, 10 Feb 2014 14:11:51 -0800 Subject: [PATCH] Put in command line parameters so that we can open stl files when double clicked. --- MatterControlApplication.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MatterControlApplication.cs b/MatterControlApplication.cs index c4e2cd308..526272db9 100644 --- a/MatterControlApplication.cs +++ b/MatterControlApplication.cs @@ -67,10 +67,10 @@ namespace MatterHackers.MatterControl string[] commandLineArgs = null; bool firstDraw = true; - public MatterControlApplication(string[] commandLineArgs, double width, double height) + public MatterControlApplication(double width, double height) : base(width, height) { - this.commandLineArgs = commandLineArgs; + this.commandLineArgs = Environment.GetCommandLineArgs();; Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; //WriteTestGCodeFile(); @@ -304,7 +304,7 @@ namespace MatterHackers.MatterControl } [STAThread] - public static void Main(string[] commandLineArgs) + public static void Main() { Datastore.Instance.Initialize(); @@ -319,7 +319,7 @@ namespace MatterHackers.MatterControl height = int.Parse(sizes[1]); } //MessageBox.ShowMessageBox(timerInfo, "Timing", MessageBox.MessageType.OK); - new MatterControlApplication(commandLineArgs, width, height); + new MatterControlApplication(width, height); } public override void OnClosed(EventArgs e)