/// <summary> /// Updates only the contents of the Converter editor /// </summary> public void UpdateConverterComponent() { if (_ignoreUpdates) { return; } ConverterEditor.SetViewingComponent(_selected.Converter); }
/// <summary> /// Updates the information about the currently selected block /// </summary> public void ListBlockContent() { // Only show things if the selected block is available if (_selected == null) { splitContainer1.Hide(); ConverterEditor.SetViewingComponent(null); } else { splitContainer1.Show(); // Update the data on the top page BlockName.Text = _selected.Name; ConverterEditor.SetViewingComponent(_selected.Converter); } }
/// <summary> /// Updates only the contents of the media editor /// </summary> public void UpdateMediaComponent() { if (_ignoreUpdates) { return; } StreamEditor.SetViewingComponent(_selected.MediaConnection); // Show by default if no media connection if (_selected.MediaConnection == null) { ConverterEditor.Show(); PollerEditor.Show(); return; } // Change if converters are allowed to be changed if (!_selected.MediaConnection.UsesGenericConverters) { ConverterEditor.ClearChoice(); ConverterEditor.Hide(); } else { ConverterEditor.Show(); } // Change if pollers are allowed to be changed if (!_selected.MediaConnection.UsesGenericPollers) { PollerEditor.ClearChoice(); PollerEditor.Hide(); } else { PollerEditor.Show(); } }