private void AddUser_Click(object sender, RoutedEventArgs e) { CreateUserWnd wnd = new CreateUserWnd(); wnd.Users = db; wnd.ShowDialog(); }
private void ListView_MouseDoubleClick(object sender, MouseButtonEventArgs e) { DataRowView sel = listView.SelectedValue as DataRowView; CreateUserWnd wnd = new CreateUserWnd(sel.Row); wnd.Users = db; wnd.ShowDialog(); }