private void butThem_Click(object sender, EventArgs e) { staffOpenForm sOF = new staffOpenForm(); sOF.goiHam = loadList; sOF.ShowDialog(); }
private void listStaff_DoubleClick(object sender, EventArgs e) { String temp = listStaff.FocusedItem.Text; staffOpenForm sOF = new staffOpenForm(temp); sOF.goiHam = loadList; sOF.ShowDialog(); }
private void butSua_Click(object sender, EventArgs e) { if (listStaff.SelectedItems.Count > 0) { String temp = listStaff.FocusedItem.Text; staffOpenForm sOF = new staffOpenForm(temp); sOF.goiHam = loadList; sOF.ShowDialog(); } else { MessageBox.Show("Hay chon quan ly can sua tu danh sach!", "WARNING", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }