Пример #1
0
        private async void appBarStatusButton_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
        {
            ProgressRingSettingsPage.IsActive = true;
            if (null != globals.gPersonGroupSelected && globals.gPersonGroupSelected.name.Equals("...") == false)
            {
                string response = await PersonGroupCmds.StatusPersonGroups(globals.gPersonGroupSelected.personGroupId);

                if (!response.Equals(""))
                {
                    MessageDialog dialog = new MessageDialog(response, "Training Status");
                    await dialog.ShowAsync();
                }
            }
            else
            {
                MessageDialog dialog = new MessageDialog("Select a PersonGroup to check training status for", "Status Error");
                await dialog.ShowAsync();
            }
            ProgressRingSettingsPage.IsActive = false;
        }