public void DeviceArrived(string deviceName, DisplayModeEntry inputMode, List <DisplayModeEntry> displayModes, List <EncodingModeEntry> encodingPresets) { Debug.WriteLine("Device Arrived: " + deviceName); lblDevice.InvokeIfRequired(c => c.Text = deviceName); progressRing.InvokeIfRequired(c => { ((RecordButton)c).ProgressPercentage = 0; c.Text = strings.record; c.Enabled = true; }); this.deviceName = deviceName; OnStatusChanged(new StatusChangedEventArgs(deviceName, inputMode.ToString())); }
public void InputModeChanged(DisplayModeEntry inputMode, List <EncodingModeEntry> encodingPresets) { if (inputMode.displayMode == null) { Debug.WriteLine("No Input"); // TODO: handle no input this.videoFormat = null; OnStatusChanged(new StatusChangedEventArgs(lblDevice.Text, null)); return; } this.encodingPresets = encodingPresets; Debug.WriteLine("Input Mode: " + inputMode.ToString()); Debug.WriteLine("Supported Encoding Presets:"); foreach (EncodingModeEntry enodingMode in encodingPresets) { Debug.WriteLine(enodingMode.ToString()); } this.videoFormat = inputMode.ToString(); OnStatusChanged(new StatusChangedEventArgs(deviceName, videoFormat)); }
public void InputModeChanged(DisplayModeEntry inputMode, List<EncodingModeEntry> encodingPresets) { if (inputMode.displayMode == null) { Debug.WriteLine("No Input"); // TODO: handle no input this.videoFormat = null; OnStatusChanged(new StatusChangedEventArgs(lblDevice.Text, null)); return; } this.encodingPresets = encodingPresets; Debug.WriteLine("Input Mode: " + inputMode.ToString()); Debug.WriteLine("Supported Encoding Presets:"); foreach (EncodingModeEntry enodingMode in encodingPresets) { Debug.WriteLine(enodingMode.ToString()); } this.videoFormat = inputMode.ToString(); OnStatusChanged(new StatusChangedEventArgs(deviceName, videoFormat)); }
public void DeviceArrived(string deviceName, DisplayModeEntry inputMode, List<DisplayModeEntry> displayModes, List<EncodingModeEntry> encodingPresets) { Debug.WriteLine("Device Arrived: " + deviceName); lblDevice.InvokeIfRequired(c => c.Text = deviceName); progressRing.InvokeIfRequired(c => { ((RecordButton)c).ProgressPercentage = 0; c.Text = strings.record; c.Enabled = true; }); this.deviceName = deviceName; OnStatusChanged(new StatusChangedEventArgs(deviceName, inputMode.ToString())); }