Example #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            frmSelectApplicant frm = new frmSelectApplicant();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                for (int i = 0; i < lvwApp.Items.Count; i++)
                {
                    if (lvwApp.Items[i].SubItems[0].Text == DatabaseConnection.appID)
                    {
                        return;
                    }
                }
                string       count = (Int32.Parse(lvwApp.Items.Count.ToString()) + 1).ToString();
                ListViewItem lv    = new ListViewItem(DatabaseConnection.appID);
                lv.SubItems.Add(count);
                lv.SubItems.Add(DatabaseConnection.applName);
                lv.SubItems.Add(DatabaseConnection.appfName);
                lv.SubItems.Add(DatabaseConnection.appMI);
                lv.SubItems.Add(DatabaseConnection.appAdd);
                lvwApp.Items.Add(lv);
            }
        }
Example #2
0
        private void button4_Click(object sender, EventArgs e)
        {
            frmSelectApplicant frm = new frmSelectApplicant();

            frm.Show();
        }