コード例 #1
0
        private void metroTile1_Click(object sender, EventArgs e)
        {
            frmAdminAddUser form = new frmAdminAddUser("Add");

            form.MdiParent = this;
            form.Show();
        }
コード例 #2
0
        private void updateUserToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string          user_id     = listView1.SelectedItems[0].SubItems[10].Text;
            string          firstname   = listView1.SelectedItems[0].SubItems[0].Text;
            string          lastname    = listView1.SelectedItems[0].SubItems[1].Text;
            string          email       = listView1.SelectedItems[0].SubItems[2].Text;
            string          address     = listView1.SelectedItems[0].SubItems[3].Text;
            string          telephone   = listView1.SelectedItems[0].SubItems[4].Text;
            string          role        = listView1.SelectedItems[0].SubItems[5].Text;
            string          joineddate  = listView1.SelectedItems[0].SubItems[6].Text;
            string          nic         = listView1.SelectedItems[0].SubItems[7].Text;
            string          username    = listView1.SelectedItems[0].SubItems[8].Text;
            string          activestate = listView1.SelectedItems[0].SubItems[9].Text;
            string          password    = listView1.SelectedItems[0].SubItems[11].Text;
            frmAdminAddUser form        = new frmAdminAddUser("Update", user_id, firstname, lastname, email, address, telephone, role, joineddate, nic, username, activestate, password);

            form.MdiParent = frmAdminHome.ActiveForm;
            form.Show();
        }