示例#1
0
 public void SetChannel(string displayName, WCFChannel channel)
 {
     if (TuneToChannel != null)
     {
         TuneToChannel(displayName, channel);
     }
 }
示例#2
0
 void PlayerService_SendTunedChannel(string displayName, out WCFChannel ch)
 {
     if (playerWindows.Keys.Contains(displayName))
     {
         ch = NetWCFConverter.ToWCF(playerWindows[displayName].GetChannel());
     }
     else
     {
         ch = null;
     }
 }
示例#3
0
        public string GetDbConnectString(string Keys)
        {
            string result;

            try
            {
                result = WCFChannel.GetWCFChannle().Get_DBConnection(Keys);
            }
            catch (Exception)
            {
                WCFChannel.ReConnectChannle();
                result = WCFChannel.GetWCFChannle().Get_DBConnection(Keys);
            }
            return(result);
        }
示例#4
0
        void PlayerService_TuneToChannel(string deviceName, WCFChannel ch)
        {
            FormJanelaFinal window = playerWindows[deviceName];

            window.SetChannel(NetWCFConverter.ToNET(ch));
        }