private async void DeleteBuildClicked(object sender, MouseButtonEventArgs e) { if (isButtonBeingPressed) { return; } isButtonBeingPressed = true; await Task.Delay(Opt.buttonDelay); isButtonBeingPressed = false; ImageButton imageButton = (ImageButton)sender; Builds.DeleteBuild(imageButton.uniqueBuildId); DisplayContent(); }