private async void AddAddmitionBtn_Click(object sender, RoutedEventArgs e) { try { AddAdmissionForm form = await AddAdmissionForm.CreateAsyncAddAdmissionForm(); form.ShowDialog(); } catch (Exception) { } }