Ejemplo n.º 1
0
 private void SyncOnceButton_Click(object sender, RoutedEventArgs e)
 {
     udpSync = new UdpSync();
     //udpSync.Interval = syncInterval;
     udpSync.IpAddress = settings.SyncBroadcastAddress;
     udpSync.Send();
 }
Ejemplo n.º 2
0
        private void SyncButton_Click(object sender, RoutedEventArgs e)
        {
            if (runningSync)
            {
                // Stop sending sync messages
                udpSync.Stop();

                SyncButton.Content = "Start";
                runningSync = false;
            }
            else
            {
                udpSync = new UdpSync();
                // Set the sync interval and broadcast IP and then start it running
                udpSync.Interval = settings.SyncInterval;
                udpSync.IpAddress = settings.SyncBroadcastAddress;
                udpSync.Start();

                SyncButton.Content = "Stop";
                runningSync = true;
            }
        }