Exemple #1
0
        public void HookSpineEvents(VolumeEventController eventController)
        {
            eventController.VolumeDescriptorActiveStateChanged += new VolumeDescriptorChangedHandler(eventController_VolumeDescriptorActiveStateChanged);
            eventController.VolumeSourceActiveStateChanged     += new VolumeSourceActiveChangedHandler(eventController_VolumeSourceActiveStateChanged);

            eventController.BackupStarted  += new VolumeBackupHandler(Spine_BackupStarted);
            eventController.BackupFinished += new VolumeBackupHandler(Spine_BackupFinished);
            eventController.BackupProgress += new VolumeBackupProgressHandler(Spine_BackupFileFinished);

            eventController.RestoreStarted  += new VolumeRestoreHandler(spine_RestoreInitStarted);
            eventController.RestoreFinished += new VolumeRestoreHandler(Spine_RestoreFinished);
            eventController.RestoreProgress += new VolumeRestoreProgressHandler(spine_RestoreFileFinished);

            eventController.ApplicationInitialised += new EventHandler(Spine_SpineInitialised);

            eventController.FormatUsbFinished += new EventHandler(Spine_FormatUsbFinished);

            MainForm.Instance.SetDefaultStatusText();
        }
        public void HookSpineEvents( VolumeEventController eventController )
        {
            eventController.VolumeDescriptorActiveStateChanged += new VolumeDescriptorChangedHandler( eventController_VolumeDescriptorActiveStateChanged );
            eventController.VolumeSourceActiveStateChanged += new VolumeSourceActiveChangedHandler( eventController_VolumeSourceActiveStateChanged );

            eventController.BackupStarted += new VolumeBackupHandler( Spine_BackupStarted );
            eventController.BackupFinished += new VolumeBackupHandler( Spine_BackupFinished );
            eventController.BackupProgress += new VolumeBackupProgressHandler( Spine_BackupFileFinished );

            eventController.RestoreStarted += new VolumeRestoreHandler( spine_RestoreInitStarted );
            eventController.RestoreFinished += new VolumeRestoreHandler( Spine_RestoreFinished );
            eventController.RestoreProgress += new VolumeRestoreProgressHandler( spine_RestoreFileFinished );

            eventController.ApplicationInitialised += new EventHandler( Spine_SpineInitialised );

            eventController.FormatUsbFinished += new EventHandler( Spine_FormatUsbFinished );

            MainForm.Instance.SetDefaultStatusText();
        }