Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. private void ButtonEmployeesDetails_Click(object sender, EventArgs e)
  2. {
  3. if (this.ListViewEmployees.SelectedItems.Count > 0)
  4. {
  5. this.Hide();
  6. FormEmployeeDetails _Form = new FormEmployeeDetails(this.ListViewEmployees.SelectedItems[0].Text);
  7. _Form.ShowDialog();
  8. this.Close();
  9. }
  10. else
  11. {
  12. MessageBox.Show("Please select Employee!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement