private void AddServer_Click(object sender, RoutedEventArgs e) { var dialog = new NewServerDialog(async(info) => { await Servers.AddServerAsync(info); }); dialog.Show(); }