예제 #1
0
        private void btnAdd_Click_1(object sender, EventArgs e)
        {
            FrmBindInfoAdd bindInfoAdd = new FrmBindInfoAdd();

            bindInfoAdd.ShowDialog();
            FindView();
        }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count > 0)
            {
                FrmBindInfoAdd bindInfoAdd = new FrmBindInfoAdd();

                bindInfoAdd.FormMode = 1;
                bindInfoAdd.Unit     = dataGridView1.CurrentRow.Cells[1].Value.ToString();
                bindInfoAdd.TruckNo  = dataGridView1.CurrentRow.Cells[2].Value.ToString();
                bindInfoAdd.CardNo   = dataGridView1.CurrentRow.Cells[3].Value.ToString();
                bindInfoAdd.ShowDialog();
                FindView();
            }
        }