示例#1
0
        private async Task Connect()
        {
            try
            {
                OnlineStatus = EOnlineStatus.Connecting;
                await _dialogManager.Connect(SelectedProxy);

                OnlineStatus = EOnlineStatus.Online;
            }
            catch (Exception e)
            {
                OnlineStatus = EOnlineStatus.Offline;
                MessageBox.Show(e.Message);
            }
        }