Esempio n. 1
0
 public SlimPlayer(SlimCLI server, string playerID)
 {
     _server = server;
     _attributes = new Dictionary<string, string>();
     _attributes["playerid"] = playerID;
 }
Esempio n. 2
0
 public SlimPlayer(SlimCLI server, Dictionary<string, string> attributes)
 {
     _server = server;
     _attributes = attributes;
 }
Esempio n. 3
0
 private static void Show(string hdr, string msg, int secs)
 {
     ThreadPool.QueueUserWorkItem(delegate(object o)
     {
         SlimCLI server = new SlimCLI();
         SlimPlayer player = new SlimPlayer(server, _userID);
         try
         {
             server.Open();
             player.Show(hdr, msg, secs);
         }
         catch (Exception)
         {
             // ignore, we're done
         }
         finally
         {
             server.Close();
         }
     });
 }