Example #1
0
        private void BtnAddAutho_Click(object sender, EventArgs e)
        {
            DialogAdminMan adminMan = new DialogAdminMan(0);

            adminMan.ShowDialog();
            listViewRefresh();
        }
Example #2
0
        private void BtnModAutho_Click(object sender, EventArgs e)
        {
            int ID     = 0;
            int nCount = listViewAutho.Items.Count;

            for (int i = 0; i < nCount; i++)
            {
                if (listViewAutho.Items[i].Checked)
                {
                    ID = int.Parse(listViewAutho.Items[i].SubItems[2].Text);
                }
            }
            if (ID != 0)
            {
                DialogAdminMan AlterForm = new DialogAdminMan(ID);
                AlterForm.ShowDialog();
                listViewRefresh();
            }
            else
            {
                MessageBox.Show("Choose the item you want to modify");
            }
        }