private async void AddnewDoc(object sender, EventArgs e)
        {
            try
            {
                AddnewDocButton.IsEnabled = false;
                constants.reporttitle     = "File Title";
                constants.placeholder     = "File Title";
                constants.backgroundchecklist.Clear();
                var page = new EdietExistingLicence();
                buttona.IsEnabled = false;
                NavigationPage.SetHasNavigationBar(page, false);
                await Navigation.PushAsync(page);

                buttona.IsEnabled = true;
            }
            catch (Exception ex)
            {
                var logged = new LoggedException.LoggedException("Error in TappedWantedDocuments.xaml.cs", ex);
                await logged.LoggAPI();
            }
            finally
            {
                AddnewDocButton.IsEnabled = true;
            }
        }
        private async void Handle_Clicked(object sender, EventArgs e)
        {
            try
            {
                constants.backgroundchecklist.Clear();
                var page = new EdietExistingLicence();
                NavigationPage.SetHasNavigationBar(page, false);
                addded.IsEnabled = false;
                await Navigation.PushAsync(page);

                addded.IsEnabled = true;
            }
            catch (Exception ex)
            {
                var logged = new LoggedException.LoggedException("Error in TappedWantedDocuments.xaml.cs", ex);
                await logged.LoggAPI();
            }
        }
 private async void btn_edit(object sender, EventArgs e)
 {
     try
     {
         var item = (MenuItem)sender;
         constants.backgroundchecklist.Clear();
         var selectedItem = ((DocumentsReports)this.BindingContext).FileName.FirstOrDefault(d => d.id == item.CommandParameter.ToString());
         constants.reporttitle = "Report Type";
         constants.backgroundchecklist.Add(selectedItem);
         var page = new EdietExistingLicence();
         NavigationPage.SetHasNavigationBar(page, false);
         await Navigation.PushAsync(page);
     }
     catch (Exception ex)
     {
         var logged = new LoggedException.LoggedException("Error in TappedWantedDocuments.xaml.cs", ex);
         await logged.LoggAPI();
     }
 }
예제 #4
0
        private async void Handle_Clicked(object sender, EventArgs e)
        {
            try
            {
                constants.backgroundchecklist.Clear();
                constants.reporttitle = "File Title";
                constants.placeholder = "File Title";
                var page = new EdietExistingLicence();
                NavigationPage.SetHasNavigationBar(page, false);
                button1a.IsEnabled = false;

                await Navigation.PushAsync(page);

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