Changeset 2538
- Timestamp:
- 3/17/2012 2:50:27 AM (14 months ago)
- Location:
- trunk/eraser/Eraser
- Files:
-
- 2 edited
-
Program.GuiProgram.cs (modified) (1 diff)
-
Program.cs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser/Eraser/Program.GuiProgram.cs
r2516 r2538 53 53 public GuiProgram(string[] commandLine, string instanceID) 54 54 { 55 Application.EnableVisualStyles();56 Application.SetCompatibleTextRenderingDefault(false);57 55 InstanceID = instanceID; 58 56 CommandLine = commandLine; -
trunk/eraser/Eraser/Program.cs
r2535 r2538 232 232 Args parsedArguments = (Args)argumentParser.Item; 233 233 234 //Set application defaults for consistent behaviour across GUI and 235 //Console instances 236 Application.EnableVisualStyles(); 237 Application.SetCompatibleTextRenderingDefault(false); 238 234 239 //Load the Eraser.Manager library 235 240 using (ManagerLibrary library = new ManagerLibrary(Settings.Get())) … … 601 606 Task task = TaskFromCommandLine(arguments); 602 607 603 //Do we have a parent dialog?604 IWin32Window parent = null;605 if (!string.IsNullOrEmpty(arguments.Parent))606 {607 parent = new Win32Window((IntPtr)(ulong)608 Convert.ChangeType(arguments.Parent, typeof(ulong)));609 }610 611 608 //Confirm that the user wants the erase. 612 609 if (arguments.Confirm) 613 610 { 614 Application.EnableVisualStyles(); 611 //Do we have a parent dialog? 612 IWin32Window parent = null; 613 if (!string.IsNullOrEmpty(arguments.Parent)) 614 { 615 parent = new Win32Window((IntPtr)(ulong) 616 Convert.ChangeType(arguments.Parent, typeof(ulong))); 617 } 618 615 619 using (Form dialog = new ShellConfirmationDialog(task)) 616 620 {
Note: See TracChangeset
for help on using the changeset viewer.
