示例#1
0
        public async Task LeaderGroupChart()
        {
            try
            {
                filter.IsVisible           = false;
                LeaderGroupFrame.IsVisible = true;
                LeaderGroupGraph.IsVisible = true;
                var getCandidature = await CommonLib.AllLeaders(CommonLib.ws_MainUrlMain + "LeaderApi/GetAllLeader");

                if (getCandidature.chartData != null)
                {
                    foreach (var item in getCandidature.chartData)
                    {
                        LeaderId = item.LeaderCode;
                        break;
                    }


                    pickerLeader.ItemsSource   = getCandidature.chartData;
                    pickerLeader.SelectedIndex = 0;
                }
            }
            catch (Exception ex)
            {
                await App.Current.MainPage.DisplayAlert("", ex.Message, "OK");
            }
        }