示例#1
0
        private void button17_Click(object sender, EventArgs e)
        {
            Add_NameRole tost = new Add_NameRole();

            if (tost.ShowDialog() == DialogResult.OK)
            {
                tost.first.InsertNameRole();
            }
            button16_Click(sender, e);
        }
示例#2
0
        private void button19_Click(object sender, EventArgs e)
        {
            int          ID   = (int)dataGridView5.SelectedRows[0].Cells[0].Value;
            Add_NameRole tost = new Add_NameRole();

            foreach (NameRole two in MynameRoles)
            {
                if (two.id == ID)
                {
                    tost.first = two;
                    if (tost.ShowDialog() == DialogResult.OK)
                    {
                        tost.first.UpdateNameRole();
                    }
                }
            }
            button16_Click(sender, e);
        }