Exemplo n.º 1
0
 public void OnSignUp()
 {
     if (string.IsNullOrEmpty(_storage.Host))
     {
         _shell.OpenUrl("https://giteahub.com/user/sign_up");
     }
     else
     {
         _shell.OpenUrl($"{_storage.Host}/user/sign_up");
     }
 }
 private void OnSignUp()
 {
     if (string.IsNullOrEmpty(_storage.Host))
     {
         _shell.OpenUrl("http://visualstudio.gitclub.cn");
     }
     else
     {
         _shell.OpenUrl($"{_storage.Host}/users/sign_in");
     }
 }
        private void OnCreateSnippet()
        {
            Validate();

            if (HasErrors)
            {
                return;
            }

            IsBusy      = true;
            BusyContent = Strings.CreatingASnippetPleaseWait;
            var successed = false;
            CreateSnippetResult createSnippetResult = null;

            Task.Run(() =>
            {
                createSnippetResult = _web.CreateSnippet(Title, FileName, Desc, Code, Visibility);
                if (createSnippetResult != null)
                {
                    successed = createSnippetResult.Snippet != null;
                    if (NeedOpen && successed)
                    {
                        _shell.OpenUrl(createSnippetResult.Snippet.WebUrl);
                    }
                }
            }).ContinueWith(task =>
            {
                IsBusy      = false;
                BusyContent = null;

                if (successed)
                {
                    _dialog.Close();
                }
                else if (createSnippetResult != null && !string.IsNullOrEmpty(createSnippetResult.Message))
                {
                    MessageBox.Show(createSnippetResult.Message);
                }
                else
                {
                    MessageBox.Show(Strings.CreateSnippetViewModel_FailedToCreateSnippet);
                }
            }, TaskScheduler.FromCurrentSynchronizationContext()).Forget();
        }
Exemplo n.º 4
0
 public override void SignUp()
 {
     _shell.OpenUrl($"{_storage.Host}/users/sign_in#register-pane");
 }
Exemplo n.º 5
0
 private void OnForgetPassword()
 {
     _shell.OpenUrl($"{Host}/users/password/new");
 }
        protected void OpenInBrowser(string endpoint)
        {
            var url = $"{_tes.Project.WebUrl}/{endpoint}";

            _shell.OpenUrl(url);
        }
 private void OnSignUp()
 {
     _shell.OpenUrl(@"https://gitee.com/signup");
 }
Exemplo n.º 8
0
 protected void OpenInBrowser(string endpoint)
 {
     _shell.OpenUrl(endpoint);
 }
 private void OnForgetPassword()
 {
     _shell.OpenUrl("https://gitee.com/password/new");
 }
Exemplo n.º 10
0
 public override void SignUp()
 {
     _shell.OpenUrl(@"https://gitee.com/signup");
 }