コード例 #1
0
        private async void LoadedCommand_Execute(object obj)
        {
            MessengerInstance.Send <LoadingMessage>(new LoadingMessage(LoadingScreenBehavior.Show, "Loading ..."));

            bool ConnectionSuccess = await _tfsService.ConnectAsync();

            if (!ConnectionSuccess)
            {
                MessengerInstance.Send <MainViewMessage>(new MainViewMessage("Setting"));
            }

            MessengerInstance.Send <LoadingMessage>(new LoadingMessage(LoadingScreenBehavior.Hide, null));
        }
コード例 #2
0
        public async void VerifyConnectionCommand_Execute(object arg)
        {
            MessengerInstance.Send <LoadingMessage>(new LoadingMessage(LoadingScreenBehavior.Show, "Loading ..."));

            bool ConnectionSuccess = await _tfsService.ConnectAsync();

            if (ConnectionSuccess)
            {
                ConnVerificationStatus = "Connected";
            }
            else
            {
                ConnVerificationStatus = "Unable to connect";
            }

            MessengerInstance.Send <LoadingMessage>(new LoadingMessage(LoadingScreenBehavior.Hide, "Done"));
        }