Changeset 1055


Ignore:
Timestamp:
5/11/2009 10:52:43 AM (6 years ago)
Author:
lowjoel
Message:

Woops, made the property an auto-implemented property and forgot to remove the backing variable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Eraser/Program.cs

    r1054 r1055  
    260260            Application.SetCompatibleTextRenderingDefault(false); 
    261261            this.instanceID = instanceID; 
    262             this.commandLine = commandLine; 
     262            this.CommandLine = commandLine; 
    263263 
    264264            //Check if there already is another instance of the program. 
     
    314314                    //Handle the exit instance event. This will occur when the main form 
    315315                    //has been closed. 
    316                     mainForm.FormClosed += OnExitInstance; 
     316                    MainForm.FormClosed += OnExitInstance; 
    317317 
    318318                    if (ShowMainForm) 
     
    345345                    client.Connect(500); 
    346346 
    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) 
    349349                        commandLineStr.Append(string.Format( 
    350350                            CultureInfo.InvariantCulture, "{0}\0", param)); 
     
    451451        /// Gets the command line arguments this instance was started with. 
    452452        /// </summary> 
    453         public string[] CommandLine 
    454         { 
    455             get 
    456             { 
    457                 return commandLine; 
    458             } 
    459         } 
     453        public string[] CommandLine { get; private set; } 
    460454 
    461455        /// <summary> 
     
    582576        /// </summary> 
    583577        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; 
    594578        #endregion 
    595579    } 
Note: See TracChangeset for help on using the changeset viewer.