private void bt_add_type_inv_Click(object sender, EventArgs e) { type_inv form = new type_inv(); form.ShowDialog(); loadTypeInv(); }
private void btt_update_type_inv_Click(object sender, EventArgs e) { if (lb_inv_type.SelectedIndex != -1) { string[] mas = new string[3]; mas[0] = inv_type_List[lb_inv_type.SelectedIndex].id.ToString(); mas[1] = inv_type_List[lb_inv_type.SelectedIndex].title.ToString(); type_inv form = new type_inv(mas); form.ShowDialog(); loadTypeInv(); } }