Ejemplo n.º 1
0
        private void btnResetPassword_Click(object sender, RoutedEventArgs e)
        {
            ObservableCollection <object> list = (ObservableCollection <object>)dgUsers.ItemsSource;

            var user = (User)list[dgUsers.SelectedIndex];

            CreateUserWindow window = new CreateUserWindow(this, user, true);

            window.ShowDialog();
        }
Ejemplo n.º 2
0
        private void dgUsers_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            DataGridRow row = sender as DataGridRow;

            ObservableCollection <object> list = (ObservableCollection <object>)dgUsers.ItemsSource;

            var user = (User)list[row.GetIndex()];

            CreateUserWindow window = new CreateUserWindow(this, user, false);

            window.ShowDialog();
        }
Ejemplo n.º 3
0
        private void btnCreateUser_Click(object sender, RoutedEventArgs e)
        {
            CreateUserWindow window = new CreateUserWindow(this, null, false);

            window.ShowDialog();
        }