Exemplo n.º 1
0
        private async void CreateCircle(object sender, RoutedEventArgs arg)
        {
            var title = CircleTitle.Text;
            var desc  = CircleDesc.Text;

            if (string.IsNullOrEmpty(title))
            {
                PopupMessage.DisplayMessageInRes("CreateCircleError");
                return;
            }

            var rst = await DataRequester.CreateCircle(title, desc);

            if (rst.Id < 1)
            {
                PopupMessage.DisplayMessage(rst.Error_Msg);
                return;
            }

            PopupMessage.DisplayMessageInRes("CreateCircleSuccess");
            NavigationManager.Instance.GoBack();
        }