//METHODS /********************************************************************** *********************************************************************/ public async Task OpenPickerPopUp() { String action = await DisplayActionSheet("", "Cancel", null, "1", "2", "3", "4", "5", "6", "7", "8", "9"); DijkstraSettingsDraw.GetNetworkByID(currentTab).SetAction(action); }
/********************************************************************** *********************************************************************/ async void B_Start_Clicked(object sender, EventArgs e) { MessagingCenter.Send <object>(this, "Portrait"); // enforce portrait mode String[] a = DijkstraSettingsDraw.GetNetworkByID(currentTab).GetAllWeights(); await Navigation.PushAsync(new Dijkstra(a, currentTab)); }
/********************************************************************** *********************************************************************/ void B_Random_Clicked(object sender, EventArgs e) { DijkstraSettingsDraw.GetNetworkByID(currentTab).SetRandomWeights(); }
/********************************************************************** *********************************************************************/ void B_Presets_Clicked(object sender, EventArgs e) { DijkstraSettingsDraw.GetNetworkByID(currentTab).SetPresetsWeights(); }
/********************************************************************** *********************************************************************/ void B_Default_Clicked(object sender, EventArgs e) { DijkstraSettingsDraw.GetNetworkByID(currentTab).SetDefaultWeights(); }