Exemplo n.º 1
0
        private void ToolStripButtonADD_Click(object sender, EventArgs e)
        {
            FormTAC_CARD formTAC_CARD = new FormTAC_CARD();

            formTAC_CARD.strConn = strConn;
            formTAC_CARD.iStyle  = 0;
            formTAC_CARD.iRange  = iRange;

            formTAC_CARD.ShowDialog();
            initDatatable();
        }
Exemplo n.º 2
0
        private void toolStripButtonEDIT_Click(object sender, EventArgs e)
        {
            FormTAC_CARD formTAC_CARD = new FormTAC_CARD();

            formTAC_CARD.strConn   = strConn;
            formTAC_CARD.iStyle    = 1;
            formTAC_CARD.iRange    = iRange;
            formTAC_CARD.iID       = int.Parse(dataGridViewP.SelectedRows[0].Cells[0].Value.ToString());
            formTAC_CARD.iProduct  = int.Parse(dataGridViewP.SelectedRows[0].Cells[2].Value.ToString());
            formTAC_CARD.sPCode    = dataGridViewP.SelectedRows[0].Cells[3].Value.ToString();
            formTAC_CARD.iIndentor = int.Parse(dataGridViewP.SelectedRows[0].Cells[4].Value.ToString());
            formTAC_CARD.sICode    = dataGridViewP.SelectedRows[0].Cells[5].Value.ToString();

            formTAC_CARD.TextBoxTAC.Text        = dataGridViewP.SelectedRows[0].Cells[1].Value.ToString();
            formTAC_CARD.numericUpDownNum.Value = int.Parse(dataGridViewP.SelectedRows[0].Cells[6].Value.ToString());

            formTAC_CARD.ShowDialog();
            initDatatable();
        }