Esempio n. 1
0
        private void bt_update_inv_Click(object sender, EventArgs e)
        {
            if (dg_inv.SelectedRows.Count != 0)
            {
                InvEdit from = new InvEdit(
                    int.Parse(dg_inv.SelectedRows[0].Cells[0].Value.ToString()),
                    int.Parse(dg_inv.SelectedRows[0].Cells[1].Value.ToString()),
                    int.Parse(dg_inv.SelectedRows[0].Cells[2].Value.ToString()),
                    dg_inv.SelectedRows[0].Cells[3].Value.ToString(),
                    dg_inv.SelectedRows[0].Cells[4].Value.ToString(),
                    dg_inv.SelectedRows[0].Cells[5].Value.ToString(),
                    dg_inv.SelectedRows[0].Cells[6].Value.ToString(),
                    dg_inv.SelectedRows[0].Cells[7].Value.ToString(),
                    dg_inv.SelectedRows[0].Cells[8].Value.ToString(),
                    dg_inv.SelectedRows[0].Cells[9].Value.ToString(),
                    dg_inv.SelectedRows[0].Cells[10].Value.ToString(),
                    dg_inv.SelectedRows[0].Cells[11].Value.ToString(),
                    dg_inv.SelectedRows[0].Cells[12].Value.ToString());
                if (from.ShowDialog() == DialogResult.OK)
                {

                }
                LoadInv();
            }
        }
Esempio n. 2
0
        private void bt_add_inv_Click(object sender, EventArgs e)
        {
            if (lb_inv_type.SelectedIndex != -1)
            {
                InvEdit from = new InvEdit(inv_type_List[lb_inv_type.SelectedIndex].id);
                if (from.ShowDialog() == DialogResult.OK)
                {

                }
            }
            LoadInv();
        }