private void SetNodeData(String tableName, System.Windows.Forms.TreeNode Node) { TWCFDetailItem DetailItem = new TWCFDetailItem(); DetailItem.CommandName = tableName; DetailItem.EntityName = tableName; Node.Tag = DetailItem; tvRelation.SelectedNode = Node; }
private void UpdatelvSelectedFields(TWCFDetailItem DetailItem) { lvSelectedFields.BeginUpdate(); lvSelectedFields.Items.Clear(); try { tbDetailTableName.Text = DetailItem.EntityName; int I; TBlockFieldItem BlockFieldItem; ListViewItem ViewItem; for (I = 0; I < DetailItem.BlockFieldItems.Count; I++) { BlockFieldItem = (TBlockFieldItem)DetailItem.BlockFieldItems[I]; ViewItem = lvSelectedFields.Items.Add(BlockFieldItem.DataField); ViewItem.SubItems.Add(BlockFieldItem.Description); ViewItem.Tag = BlockFieldItem; } } finally { lvSelectedFields.EndUpdate(); } }
public bool ShowSelTableFieldForm(TWCFDetailItem DetailItem, ListView DestListView, MWizard.fmClientWzard.RearrangeRefValButtonFunc RearrangeRefValButton, EventHandler RefValButtonEvent, List<COLDEFInfo> colDefObjects, string assemblyName, string commandName) { FDetailItem = DetailItem; FTableName = FDetailItem.EntityName; FDestListView = DestListView; FRearrangeRefValButtonFunc = RearrangeRefValButton; FRefValClickEvent = RefValButtonEvent; FClientField = true; ColDefObjects = colDefObjects; _AssemblyName = assemblyName; _CommandName = commandName; Init(); return ShowDialog() == DialogResult.OK; }