Example #1
0
        private void ConnectionStatusChangedHandler(object sender, ToxEventArgs.ConnectionStatusEventArgs e)
        {
            RaisePropertyChanged("IsConnected");

            if (e.Status == ToxConnectionStatus.None)
            {
                BootstrapContinously();
            }
        }
Example #2
0
        private void Tox_OnConnectionStatusChanged(object sender, ToxEventArgs.ConnectionStatusEventArgs e)
        {
            if (e.Status == ToxConnectionStatus.None)
            {
                WaitAndBootstrap(2000);
            }

            Debugging.Write("Connection status changed to: " + e.Status);
        }
Example #3
0
 private void Tox_OnConnectionStatusChanged(object sender, ToxEventArgs.ConnectionStatusEventArgs e)
 {
     if (e.Status == ToxConnectionStatus.None)
     {
         User.Status = Status.Offline;
     }
     else
     {
         User.Status = Status.Available;
     }
 }
Example #4
0
        private void OnToxConnectionStatusChanged(object sender, ToxEventArgs.ConnectionStatusEventArgs e)
        {
            if (e.Status == ToxConnectionStatus.None)
            {
                this.WaitAndBootstrap(2000);
            }

            Logger.Log(LogLevel.Info, string.Format("Connection status changed to: {0}", e.Status));

            MainForm.Instance.NotifyToxConnectionStatusChanged(e);
        }
Example #5
0
 private static void Tox_OnConnectionStatusChanged(object sender, ToxEventArgs.ConnectionStatusEventArgs e)
 {
     Console.WriteLine(e.Status);
 }
Example #6
0
 private void Tox_OnConnectionStatusChanged(object sender, ToxEventArgs.ConnectionStatusEventArgs e)
 {
     MainWindow.Instance.UInvoke(() => ConnectionStatus = e.Status);
 }