Changeset 911
- Timestamp:
- 4/28/2009 2:08:17 PM (4 years ago)
- File:
-
- 1 edited
-
branches/eraser6/Eraser/Program.cs (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/Eraser/Program.cs
r905 r911 156 156 System.Threading.Thread.CurrentThread.CurrentUICulture = 157 157 new CultureInfo(settings.Language); 158 GUIProgram.SafeTopLevelCaptionFormat = S._("Eraser");158 Application.SafeTopLevelCaptionFormat = S._("Eraser"); 159 159 160 160 //Load the task list … … 203 203 /// </summary> 204 204 /// <param name="sender">The sender of the event.</param> 205 private static void OnGUINextInstance(object sender) 205 /// <param name="message">The message from the source application.</param> 206 private static void OnGUINextInstance(object sender, string message) 206 207 { 207 208 //Another instance of the GUI Program has been started: show the main window … … 213 214 { 214 215 program.MainForm.Invoke(new GUIProgram.NextInstanceFunction( 215 OnGUINextInstance), new object[] { sender });216 OnGUINextInstance), new object[] { sender, message }); 216 217 return; 217 218 } … … 337 338 StringBuilder commandLineStr = new StringBuilder(commandLine.Length * 64); 338 339 foreach (string param in commandLine) 339 commandLineStr.Append(string.Format("{0}\0", param)); 340 commandLineStr.Append(string.Format( 341 CultureInfo.InvariantCulture, "{0}\0", param)); 340 342 341 343 byte[] buffer = new byte[commandLineStr.Length]; … … 437 439 438 440 /// <summary> 439 /// Gets or sets the format string to apply to top-level window captions when440 /// they are displayed with a warning banner.441 /// </summary>442 public static string SafeTopLevelCaptionFormat443 {444 get445 {446 return Application.SafeTopLevelCaptionFormat;447 }448 set449 {450 Application.SafeTopLevelCaptionFormat = value;451 }452 }453 454 /// <summary>455 441 /// Gets the command line arguments this instance was started with. 456 442 /// </summary> … … 522 508 /// </summary> 523 509 /// <param name="sender">The sender of the event</param> 524 public delegate void NextInstanceFunction(object sender );510 public delegate void NextInstanceFunction(object sender, string message); 525 511 526 512 /// <summary> … … 538 524 { 539 525 if (NextInstance != null) 540 NextInstance(sender );526 NextInstance(sender, message); 541 527 } 542 528 … … 1176 1162 /// </summary> 1177 1163 /// <param name="key">The registry key to look for the settings in.</param> 1178 public RegistrySettings( Guid guid,RegistryKey key)1164 public RegistrySettings(RegistryKey key) 1179 1165 { 1180 1166 this.key = key; … … 1247 1233 1248 1234 //Return the Settings object. 1249 return new RegistrySettings( guid,pluginsKey);1235 return new RegistrySettings(pluginsKey); 1250 1236 } 1251 1237 }
Note: See TracChangeset
for help on using the changeset viewer.
