public CpdAddEventPage()
 {
     vm                          = new CpdAddEventViewModel();
     BindingContext              = vm;
     vm.DisplayEmptyFieldPrompt += () =>
                                   DisplayAlert("Error", "Not all fields are filled in.\n* Are required fields.", "OK");
     InitializeComponent();
 }
        public CpdAddEventPage(int key)
        {
            vm                          = new CpdAddEventViewModel(key);
            BindingContext              = vm;
            vm.DisplayEmptyFieldPrompt += () =>
                                          DisplayAlert("Error", "Not all fields are filled in.\n* Are required fields.", "OK");

            InitializeComponent();
            SubCatagory.IsEnabled     = true;
            SubCatagory.SelectedIndex = vm.SubCatagorySelectedIndex;
        }