예제 #1
0
        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);
        }
예제 #2
0
        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);
        }