Exemplo n.º 1
0
        private void buttonAdd_Click(object sender, EventArgs e)
        {
            usersManager um = new usersManager();
            DialogResult dr = um.ShowDialog();

            if (dr == DialogResult.OK)
            {
                ManagerSystem_Load(null, null);
                this.tabControl1.SelectedIndex = 0;
            }
        }
Exemplo n.º 2
0
        private void buttonUpdata_Click(object sender, EventArgs e)
        {
            string       id       = userDataView.SelectedRows[0].Cells[0].Value.ToString();
            string       uName    = userDataView.SelectedRows[0].Cells[1].Value.ToString();
            string       uPd      = userDataView.SelectedRows[0].Cells[2].Value.ToString();
            bool         isUpdata = true;
            usersManager um       = new usersManager(id, uName, uPd, isUpdata);
            DialogResult dr       = um.ShowDialog();

            if (dr == DialogResult.OK)
            {
                ManagerSystem_Load(null, null);
            }
        }