private async void chk2(object sender, RoutedEventArgs e)
        {
            
            try
            {
                if (busno.Text != "" && apwd.Password != "" && bpwd.Password != "")
                {

                    if (apwd.Password == bpwd.Password)
                    {

                        Fleet lol = new Fleet();
                        Locationnn haha = new Locationnn();
                        lol.id = busno.Text;
                        haha.id = busno.Text;
                        lol.busno = busno.Text;
                        lol.pwd = apwd.Password;
                        haha.busno = busno.Text;
                        haha.latttitude = "17.59992";
                        haha.lonngitude = "78.4177682";
                        await xyz.UpdateAsync(haha);
                        await abc.UpdateAsync(lol);
                        MessageDialog hehe = new MessageDialog("Bus Updated");
                        hehe.ShowAsync();
                        Frame.Navigate(typeof(fleetlist));
                    }
                    else
                    {
                        MessageDialog delete = new MessageDialog("Passwords Do not Match");
                        delete.ShowAsync();
                        // apwd.Password = null;
                        //bpwd.Password = null;
                    }
                }



                else
                {
                    MessageDialog delete = new MessageDialog("All Fields are mandatory. Please fill and retry.");
                    delete.ShowAsync();

                }
            }
            catch
            {
                MessageDialog delete = new MessageDialog("Error Occured due to low internet connectivity. Please try again later.");
                delete.ShowAsync();
                Frame.Navigate(typeof(fleetlist));
            }
           
         }
        private async void chkk(object sender, RoutedEventArgs e)
        {
            try
            {
                var taskassign = await abc.Where(p => p.busno == busno.Text).ToListAsync();
                var taskassign1 = await xyz.Where(p => p.busno == busno.Text).ToListAsync();

                Fleet basket = new Fleet();
                Locationnn basket1 = new Locationnn();
                basket.id = taskassign[0].id;
                basket1.id = taskassign1[0].id;
                basket.busno = taskassign[0].busno;
                basket1.busno = taskassign1[0].busno;
                basket.pwd = taskassign[0].pwd;
                basket1.latttitude = taskassign1[0].latttitude;
                basket1.lonngitude = taskassign1[0].lonngitude;
                await abc.DeleteAsync(basket);
                await xyz.DeleteAsync(basket1);
                MessageDialog delete = new MessageDialog("Bus is Deleted");
                delete.ShowAsync();
                Frame.Navigate(typeof(fleetlist));
            }
            catch
            {
                MessageDialog delete = new MessageDialog("Error Occured due to low internet connectivity. Please try again later.");
                delete.ShowAsync();
            }//del
        }