private void FLUTable_DoubleClick(object sender, EventArgs e) { FLUTItem frm = new FLUTItem(this, itemIndex); frm.Text = "Modify Translation Item"; frm.ShowDialog(this); lstvTable.Items[itemIndex].Selected = true; }
private void btnAdd_Click(object sender, EventArgs e) { int count = LUItemList.Count; FLUTItem frm = new FLUTItem(this); frm.Text = "Add Translation Item"; frm.ShowDialog(this); this.lblNo.Text = LUItemList.Count + " item(s)"; if (LUItemList.Count > count) { itemIndex = count; lstvTable.Items[itemIndex].Selected = true; } }