private void selTables_SelectItem(object sender, SEListBox.SelectItemEventArgs e) { var itm = selTables.ItemDatas[e.RowIndex] as ItemDataClass; var tc = itm.Object as TableClass; selFields.ClearItems(); foreach (var fld in tc.Fields.Values) { selFields.Add(fld.ToString(), fld.State, fld); } }
private void selFields_SelectItem(object sender, SEListBox.SelectItemEventArgs e) { var itm = selFields.ItemDatas[e.RowIndex] as ItemDataClass; var ob = itm.Object as TableFieldClass; if (itm.Check == CheckState.Checked) { ob.State = CheckState.Unchecked; } else { ob.State = CheckState.Checked; } }
private void selStructureTables_SelectItem(object sender, SEListBox.SelectItemEventArgs e) { int i = e.RowIndex; }