Exemple #1
0
 private void sourceInputBtn_Composite_Click(object sender, EventArgs e)
 {
     if (Enabled)
     {
         SelectedInput = TVMode.Satellite;
     }
 }
Exemple #2
0
 /// <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);
     }
 }
Exemple #3
0
 private void sourceInputBtn_Antenna_Click(object sender, EventArgs e)
 {
     if (Enabled)
     {
         SelectedInput = TVMode.Broadcast;
     }
 }
Exemple #4
0
        /// <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);
        }
Exemple #5
0
 public void SetTVMode(TVMode tvMode)
 {
     try
     {
         TVGraph.TVMode = tvMode;
     }
     catch (Exception exception)
     {
         AppLogger.Message(String.Format("SetTVMode failed because {0}", exception.Message));
         throw exception;
     }
 }
Exemple #6
0
 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);
     }
 }
Exemple #7
0
 public void TVModeChanged(TVMode newMode)
 {
     Debug.WriteLine("Server handed down TVMode: " + newMode.ToString());
     _tvStreamControl.TVMode = newMode;
     _tvStreamControl.FirePropertyChanged("TVMode");
 }