private void AdicionarItem() { frmItemTipo it = new frmItemTipo(); it.DbScriptType = new lib.Database.DbScriptType(); if (it.Exec()) { Utility.Config.TypeList.Add(it.DbScriptType); lstTipos.Items.Add(it.DbScriptType); } }
private void AlterarItem() { int idx = lstTipos.SelectedIndex; if (idx != -1) { frmItemTipo it = new frmItemTipo(); it.DbScriptType = Utility.Config.TypeList[idx]; if (it.Exec()) { Utility.Config.TypeList[idx] = it.DbScriptType; lstTipos.Items[idx] = Utility.Config.TypeList[idx]; } } }