예제 #1
0
 private void tsbtnEdit_Click(object sender, EventArgs e)
 {
     if (dgEFURL.SelectedRows.Count > 0)
     {
         frmEFileAdd frmUpd = new frmEFileAdd(this, dgEFURL.SelectedRows[0].Cells[1].Value.ToString(), dgEFURL.SelectedRows[0].Cells[3].Value.ToString(), dgEFURL.SelectedRows[0].Cells[4].Value.ToString(), dgEFURL.SelectedRows[0].Cells[2].Value.ToString());
         frmUpd.Show();
     }
     else
     {
         MessageBox.Show("Please select a record to update!", "TAXcom E-Filing", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }
예제 #2
0
        private void tsbtnAdd_Click(object sender, EventArgs e)
        {
            frmEFileAdd frmAdd = new frmEFileAdd(this, strFormType);

            frmAdd.Show();
        }