Put in command line parameters so that we can open stl files when double clicked.
This commit is contained in:
parent
6ff4800258
commit
e6e16c3612
1 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue