Example #1
0
        private void moditflyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            staffstatus ss = new worksheet.staffstatus();

            ss.ccbox        = namelistView.SelectedItems[0].SubItems[5].Text;
            ss.staffnamebox = namelistView.SelectedItems[0].SubItems[1].Text;
            ss.staffnobox   = namelistView.SelectedItems[0].SubItems[2].Text;
            ss.gradebox     = namelistView.SelectedItems[0].SubItems[3].Text;
            ss.unitbox      = namelistView.SelectedItems[0].SubItems[4].Text;
            AddUserForm applyuser = new AddUserForm("Moditfly", namelistView, namelistView.SelectedItems[0].SubItems[0].Text, ss);

            applyuser.ShowDialog();
        }
Example #2
0
        private void addStaffbutton_Click(object sender, EventArgs e)
        {
            AddUserForm applyuser = new AddUserForm("Add", namelistView);

            applyuser.ShowDialog();
        }