/// <summary> /// This page will hold the list of processes you started /// </summary> public MainPage() { InitializeComponent(); ProcessIds = new GetProcessListViewModel(); BindingContext = ProcessIds; }
/// <summary> /// Add process to the list and start counting function /// </summary> /// <returns></returns> private async Task Add_New_Process() { try { await new CreateProcessViewModel().Create(); ProcessIds = new GetProcessListViewModel(); BindingContext = ProcessIds; } catch (System.Exception) { //This will be triggered most of the time if you forgot your connection string... await DisplayAlert("Error", "Oeps, could not create process, try again please", "Ok"); } }