private void OnChangeSlideDelay_Clicked(object sender, RoutedEventArgs e) { AskForTime ask = new AskForTime(this.delayTime, "Slide Delay", "int"); ask.ShowDialog(); if (ask.DialogResult == true) { this.delayTime = ask.time; } }
private void OnChangeAnimLength_Clicked(object sender, RoutedEventArgs e) { AskForTime ask = new AskForTime(this.animationDuration.TotalSeconds, "Animation", "double"); ask.ShowDialog(); if (ask.DialogResult == true) { this.animationDuration = TimeSpan.FromSeconds(ask.time); } }