public async static void OpenClientViewDialog(Client client) { ClientView dialog = new ClientView(client); var result = await dialog.ShowAsync(); if (result == ContentDialogResult.Primary) { dialog.Hide(); OpenClientEditDialog(client); } }