public FieldSetViewer() { InitializeComponent(); control = new FieldSetControl(); control.Dock = DockStyle.Fill; //control.Width = this.Width; Controls.Add(control); }
/// <summary> /// This method Edit Field Sets /// </summary> public void EditFieldSets() { // Create a new instance of a 'FieldSetEditorForm' object. FieldSetEditorForm form = new FieldSetEditorForm(); // Setup the control form.Setup(this.SelectedTable, false, false, null); // Show the FieldSetEditor form form.ShowDialog(); // Create a new instance of a 'Gateway' object. Gateway gateway = new Gateway(); // Load the FieldSets this.SelectedTable.FieldSets = gateway.LoadFieldSetsForTable(this.SelectedTable.TableId); // Reload the FieldSets FieldSetControl.LoadItems(SelectedTable.ReaderFieldSets); }