// // Mechanics // // see: https://stackoverflow.com/questions/52706251/c-sharp-async-await-a-button-click private void ButtonClose_Click(object sender, RoutedEventArgs e) { this.Result = false; this.ResultContainer = null; ControlClosed?.Invoke(); }