Exemple #1
0
        private void ApplicationListTableView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                return;
            }
            int applicationNum = (ApplicationListTableView.Rows[e.RowIndex].Cells[0].Value != DBNull.Value) ? Convert.ToInt32(ApplicationListTableView.Rows[e.RowIndex].Cells[0].Value) : 0;

            if (applicationNum == 0)
            {
                return;
            }
            //open existing application
            ApplicationForm newApp = new ApplicationForm(userID, true, applicationNum);

            newApp.Show();
        }
Exemple #2
0
        private void NewApplicationButton_Click(object sender, EventArgs e)
        {
            ApplicationForm newApp = new ApplicationForm(userID, false);

            newApp.Show();
        }