public void ApplicationDidFinishLaunching(NSNotification notification) { // Gets the DRBurn icon and assign it another name NSImage icon = NSImage.ImageNamed(DiscRecordingUIFramework.DRBurnIcon); icon.SetName("OldDRBurnIcon"); // Gets the Monobjc icon and assign it as default icon icon = new NSImage(NSBundle.MainBundle.PathForImageResource("Monobjc.icns")); icon.SetName(DiscRecordingUIFramework.DRBurnIcon); }
public void ApplicationDidFinishLaunching(NSNotification notification) { // Gets the DRErase icon and assign it another name NSImage icon = NSImage.ImageNamed(DiscRecordingUIFramework.DREraseIcon); icon.SetName("OldDREraseIcon"); // Gets the Monobjc icon and assign it as default icon icon = new NSImage(NSBundle.MainBundle.PathForImageResource("Monobjc.icns")); icon.SetName(DiscRecordingUIFramework.DREraseIcon); NSNotificationCenter.DefaultCenter.AddObserverSelectorNameObject(this, ObjectiveCRuntime.Selector("eraseCompleted:"), DREraseProgressPanel.DREraseProgressPanelDidFinishNotification, null); this.EraseCompleted(null); }