예제 #1
0
        public void OpenUserMenu(DataGridViewCellEventArgs e, DataGridView dataGridViewUsers)
        {
            IUser user = null;

            try
            {
                string cellclicked = dataGridViewUsers.Rows[e.RowIndex].Cells[0].Value.ToString();
                foreach (var item in _libraryPresenter.Container.users.Get())
                {
                    if (item.UserId.ToString().Equals(cellclicked))
                    {
                        user = item;
                    }
                }
            }
            catch
            {
            }

            if (user != null)
            {
                UserMenuForm userform = new UserMenuForm(_libraryPresenter, user);
                userform.Show();
            }
        }
예제 #2
0
        public void OpenUserMenu()
        {
            UserMenuForm userform = new UserMenuForm(_libraryPresenter, selectedUser);

            userform.Show();
        }