async void edit_btn(object sender, System.EventArgs e)
        {
            try
            {
                var item = (MenuItem)sender;
                Ids = item.CommandParameter.ToString();
                constants.licencesitem.Clear();
                var selectedItem = ((GetLicenceView)this.BindingContext).LicensesDataListView.FirstOrDefault(d => d.id == Ids);
                constants.licencesitem.Add(selectedItem);
                if (Licencesupdateviewmodel.SelectedLicenseType == null)
                {
                    Licencesupdateviewmodel.SelectedLicenseType = new licencetype();
                }
                Licencesupdateviewmodel.SelectedLicenseType.id = selectedItem.type.ToString();
                var Ltitle = LicenseHelper.LicenceTypes.FirstOrDefault(x => x.id == selectedItem.type.ToString());
                if (Ltitle != null)
                {
                    Licencesupdateviewmodel.SelectedLicenseType.title = Ltitle.title;
                }

                var page = new AddLicence();
                NavigationPage.SetHasNavigationBar(page, false);
                await Navigation.PushAsync(page);
            }
            catch (Exception ex)
            {
                var logged = new LoggedException.LoggedException("Error in mylicence.xaml.cs", ex);
                await logged.LoggAPI();
            }
        }
        async void Handle_Clicked(object sender, System.EventArgs e)
        {
            try
            {
                Licencesupdateviewmodel._selectedlicencetype = null;
                Licencesupdateviewmodel.SelectedLicenseType  = null;
                constants.licencesitem.Clear();
                var page = new AddLicence();
                NavigationPage.SetHasNavigationBar(page, false);
                ADD.IsEnabled = false;
                await Navigation.PushAsync(page);//add

                ADD.IsEnabled = true;
            }
            catch (Exception ex)
            {
                var logged = new LoggedException.LoggedException("Error in mylicence.xaml.cs", ex);
                await logged.LoggAPI();
            }
        }