Ejemplo n.º 1
0
        private void contactListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            Contact selected = (Contact)contactListView.SelectedItem;

            if (selected != null)
            {
                ContactWindow contactDetailWindow = new ContactWindow(selected);
                contactDetailWindow.ShowDialog();
                ReadDatabase();
            }
        }
Ejemplo n.º 2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            ContactWindow contact = new ContactWindow();

            contact.ShowDialog();
        }