Iyon_Groznyy

Untitled

Sep 10th, 2020
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.20 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. using Xamarin.Forms;
  8. using Xamarin.Forms.Xaml;
  9. using XamarinTest.ViewModel;
  10.  
  11. namespace XamarinTest.Views
  12. {
  13.     [XamlCompilation(XamlCompilationOptions.Compile)]
  14.     public partial class ReportView : ContentPage
  15.     {
  16.         ReportVM reportVM;
  17.         public ReportView()
  18.         {
  19.             InitializeComponent();
  20.             reportVM = new ReportVM();
  21.             BindingContext = reportVM;
  22.         }
  23.  
  24.         private void btnComplies_Clicked(object sender, EventArgs e)
  25.         {
  26.             if(reportVM.CurrentRow != -1)
  27.             {
  28.                 reportVM.verificateStatusChange("Comply");
  29.             }
  30.         }
  31.  
  32.         private void btnDComply_Clicked(object sender, EventArgs e)
  33.         {
  34.             if (reportVM.CurrentRow != -1)
  35.             {
  36.                 reportVM.verificateStatusChange("No Comply");
  37.             }
  38.         }
  39.  
  40.         private void btnNA_Clicked(object sender, EventArgs e)
  41.         {
  42.             if (reportVM.CurrentRow != -1)
  43.             {
  44.                 reportVM.verificateStatusChange("N/A");
  45.             }
  46.         }
  47.     }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment