public async void ResultBarProgress(ResultView res, ResultViewModel vm)
        {
            int totalcount = 0;

            if (vm.BarValue == "CI")
            {
                totalcount = vm.Studentci.Count();
            }
            else if (vm.BarValue == "TeachStep2")
            {
                totalcount = vm.Studentstep2.Count();
            }
            else if (vm.BarValue == "TeachStep1")
            {
                totalcount = vm.Studentstep1.Count();
            }
            controller = await res.ShowProgressAsync("Please wait...", vm.NoConditionResult.Count + " counts");

            while (!vm.Done)
            {
                if (totalcount != 0)
                {
                    controller.SetProgress((vm.NoConditionResult.Count / totalcount) * 100.0);
                }
                controller.SetMessage("Computing Result in progress: " + vm.NoConditionResult.Count + " counts...");
                await Task.Delay(200);
            }
            controller.CloseAsync();
            vm.CanShow = true;
        }