Exemple #1
0
 void m_ServerSearch_ServerFound(object sender, Controllers.ServerEventArgs e)
 {
     if (e.Server.Name.EndsWith(FromControllerNetwork.MEDIA_PORTAL))
     {
         // this is the mediaportal plugin itself
         return;
     }
     MediaPortal.GUI.Library.Log.Info(String.Format(StringResources.ServerFound, e.Server.Name));
     m_Server = e.Server;
     ConnectOrDisconnectToPlayer();
 }
Exemple #2
0
 void m_ServerSearch_ServerFound(object sender, Controllers.ServerEventArgs e)
 {
     if (m_Servers.ContainsKey(e.Server.Name))
     {
         return;
     }
     Controllers.Messages.AddMessage(Controllers.MessageType.Info, String.Format(StringResources.ServerFound, e.Server.Name));
     serverBox.Items.Add(e.Server.Name);
     if (serverBox.Items.Count == 1)
     {
         serverBox.SelectedIndex = 0;
     }
     connectButton.Enabled    = true;
     m_Servers[e.Server.Name] = e.Server;
     if (m_ConnectWithFirstServer)
     {
         ConnectOrDisconnect();
         m_ConnectWithFirstServer = false;
     }
 }