Exemple #1
0
        /// <summary>
        ///     Replaces the current underlying EntededTox instance with a new one.
        ///     It's used for profile switching.
        /// </summary>
        /// <param name="tox">The new ExtendedTox instance.</param>
        public void SetCurrent(ExtendedTox tox)
        {
            ToxAvModel.Instance.SetCurrent(tox);

            _tox?.Dispose();

            _tox = tox;
            RegisterHandlers();

            RaiseAllPropertiesChanged();
            RaiseFriendListReseted();
        }
Exemple #2
0
        public ToxModel()
        {
            var tox = new ExtendedTox(new ToxOptions(true, true))
            {
                Name          = "User",
                StatusMessage = "Using OneTox."
            };

            SetCurrent(tox);

            _semaphore = new SemaphoreSlim(1);

            _lastConnectionStatusRegistry = new LastConnectionStatusRegistry();
        }
Exemple #3
0
 public void SetCurrent(ExtendedTox tox)
 {
 }