Beispiel #1
0
        public static void Update()
        {
            if (!paused)
            {
                var str = "";

                foreach (var i in infos)
                {
                    var stat = "N";
                    if (i.Value.times == 0)
                    {
                        stat = "O";
                    }
                    else if (i.Value.times > 1)
                    {
                        stat = "D";
                    }
                    //var outdated = i.Value.times == 0 ? "(Outdated)" : "";
                    //var duplicated = i.Value.times > 1 ? "(Duplicated)" : "";
                    str += string.Format("[{2}]{0} :  {1}   \r\n", i.Key, i.Value.info, stat);
                }
                ConnectionInitializer.UpdateInfo(str);

                Clear();
            }
        }
Beispiel #2
0
 private void timerFast_Tick(object sender, EventArgs e)
 {
     if (ConnectionInitializer.socketServer != null)
     {
         ConnectionInitializer.UpdateSocket();
     }
 }
Beispiel #3
0
 private void button3_Click(object sender, EventArgs e)
 {
     ConnectionInitializer.InitSocket();
 }
Beispiel #4
0
 public void Log(string msg) => ConnectionInitializer.Log("[" + vid + "]" + msg);