Exemple #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            try
            {
                ListViewItem record = listView1.SelectedItems[0];
                if (record.SubItems[7].Text == "Admin")
                {
                    globals.tablescope = "admns";
                    globals.targetuser = record.SubItems[1].Text;
                }

                else if (record.SubItems[7].Text == "G/User")
                {
                    globals.tablescope = "gnrlusers";
                    globals.targetuser = record.SubItems[1].Text;
                }

                Hide();
                useredit newform = new useredit();
                newform.ShowDialog();
                User_manager reload = new User_manager();
                reload.ShowDialog();
            }
            catch (Exception)
            {
                MessageBox.Show("Please make sure you have selected a user to edit!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Exemple #2
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            Hide();
            User_manager newform = new User_manager();

            newform.ShowDialog();
            Show();
        }