private void repositoryItemHyperLinkEdit1_Click(object sender, EventArgs e) { var userDetailForm = new UserDetail((usersbindingSource.Current as UserViewModel).UserID, repository); userDetailForm.ShowDialog(); RefreshUsersList(); }
private void BtnAddNewUserClick(object sender, EventArgs e) { var window = new UserDetail(repository); window.ShowDialog(); }
private void repositoryItemHyperLinkEdit1_Click(object sender, EventArgs e) { var userDetailForm = new UserDetail((usersbindingSource.Current as UserViewModel).UserID,repository); userDetailForm.ShowDialog(); RefreshUsersList(); }