Provides data for the IInputProvider.NewRecording event.
Наследование: System.EventArgs
Пример #1
0
        private void OnNewRecording(object sender, RecordingEventArgs e)
        {
            if (this.recordingEntry == null)
                return;

            CommandBindingViewModel entry;
            lock (this.inputSync) {
                if (this.recordingEntry == null)
                    return;

                e.Provider.NewRecording -= OnNewRecording;
                e.Provider.EndRecord();

                entry = Interlocked.Exchange (ref this.recordingEntry, null);
                entry.Input = e.RecordedInput;
                entry.ProviderType = e.Provider.GetType().Name;
                entry.Recording = false;
            }

            IsRecording = false;
        }
Пример #2
0
 private void OnNewRecording(RecordingEventArgs e)
 {
     EventHandler<RecordingEventArgs> handler = NewRecording;
     if (handler != null)
         handler (this, e);
 }