private void sourceInputBtn_Composite_Click(object sender, EventArgs e) { if (Enabled) { SelectedInput = TVMode.Satellite; } }
/// <summary> /// Sets the TVMode on the server /// </summary> /// <param name="mode">TVMode to set to</param> public void SetTVMode(TVMode mode) { if ((_proxy != null) && (mode != this.TVMode)) { _proxy.SetTVMode(mode); } }
private void sourceInputBtn_Antenna_Click(object sender, EventArgs e) { if (Enabled) { SelectedInput = TVMode.Broadcast; } }
/// <summary> /// Returns the button associated with the currently SelectedInput /// </summary> private FCButton GetInputButton(TVMode input) { switch (input) { case TVMode.Broadcast: return(sourceInputBtn_Antenna); case TVMode.Satellite: return(sourceInputBtn_Composite); } return(null); }
public void SetTVMode(TVMode tvMode) { try { TVGraph.TVMode = tvMode; } catch (Exception exception) { AppLogger.Message(String.Format("SetTVMode failed because {0}", exception.Message)); throw exception; } }
public void SetTVMode(TVMode tvMode, bool connectAudio) { try { TVGraph.SetTVMode(tvMode, connectAudio); } catch (Exception exception) { Debug.WriteLine(String.Format("SetTVMode failed because {0}", exception.Message)); throw new Exception("SetTVMode failed because " + exception.Message); } }
public void TVModeChanged(TVMode newMode) { Debug.WriteLine("Server handed down TVMode: " + newMode.ToString()); _tvStreamControl.TVMode = newMode; _tvStreamControl.FirePropertyChanged("TVMode"); }