Changeset 1055
- Timestamp:
- 5/11/2009 10:52:43 AM (4 years ago)
- File:
-
- 1 edited
-
branches/eraser6/Eraser/Program.cs (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/Eraser/Program.cs
r1054 r1055 260 260 Application.SetCompatibleTextRenderingDefault(false); 261 261 this.instanceID = instanceID; 262 this. commandLine = commandLine;262 this.CommandLine = commandLine; 263 263 264 264 //Check if there already is another instance of the program. … … 314 314 //Handle the exit instance event. This will occur when the main form 315 315 //has been closed. 316 mainForm.FormClosed += OnExitInstance;316 MainForm.FormClosed += OnExitInstance; 317 317 318 318 if (ShowMainForm) … … 345 345 client.Connect(500); 346 346 347 StringBuilder commandLineStr = new StringBuilder( commandLine.Length * 64);348 foreach (string param in commandLine)347 StringBuilder commandLineStr = new StringBuilder(CommandLine.Length * 64); 348 foreach (string param in CommandLine) 349 349 commandLineStr.Append(string.Format( 350 350 CultureInfo.InvariantCulture, "{0}\0", param)); … … 451 451 /// Gets the command line arguments this instance was started with. 452 452 /// </summary> 453 public string[] CommandLine 454 { 455 get 456 { 457 return commandLine; 458 } 459 } 453 public string[] CommandLine { get; private set; } 460 454 461 455 /// <summary> … … 582 576 /// </summary> 583 577 private bool isFirstInstance; 584 585 /// <summary>586 /// The command line arguments this instance was started with.587 /// </summary>588 private string[] commandLine;589 590 /// <summary>591 /// The main form for this program instance.592 /// </summary>593 private Form mainForm;594 578 #endregion 595 579 }
Note: See TracChangeset
for help on using the changeset viewer.
