コード例 #1
0
 public static void Initialize()
 {
     foreach (string ip in AppSettings.Default.RemoteClients)
     {
         SyncedFrame syncFrame = new SyncedFrame()
         {
             hostname = ip, offsetdelay = 0
         };
         syncedFrames.Add(syncFrame);
     }
 }
コード例 #2
0
            public static void AddFrame(string frame, int delay = 0)
            {
                SyncedFrame syncFrame = new SyncedFrame()
                {
                    hostname = frame, offsetdelay = delay
                };

                if (!syncedFrames.Contains(syncFrame))
                {
                    syncedFrames.Add(syncFrame);
                }
            }