public static async Task <AddUserForm> CreateAsyncAddUserForm() { AddUserForm form = new AddUserForm(); await form.InitializeAsync(); return(form); }
private async void AddUserBtn_Click(object sender, RoutedEventArgs e) { AddUserForm form = await AddUserForm.CreateAsyncAddUserForm(); form.ShowDialog(); }