public GroupBindingCreatorForm(IProject project) { InitializeComponent(); this._project = project; this._binding = null; populateDocsControl(); }
public GroupTransform(IHostEnvironment env, Arguments args, IDataView input) : base(env, RegistrationName, input) { Host.CheckValue(args, nameof(args)); Host.CheckUserArg(Utils.Size(args.GroupKeys) > 0, nameof(args.GroupKeys), "There must be at least one group key"); _groupBinding = new GroupBinding(Host, Source.Schema, args.GroupKeys, args.Columns ?? new string[0]); }
private GroupTransform(IHost host, ModelLoadContext ctx, IDataView input) : base(host, input) { Host.AssertValue(ctx); // *** Binary format *** // (GroupBinding) _groupBinding = new GroupBinding(input.Schema, host, ctx); }
public GroupBindingCreatorForm(IProject project, GroupBinding binding) { InitializeComponent(); this._project = project; this._binding = binding; populateDocsControl(); populateGroupNamesList(); btnOK.Enabled = true; }
public SharedGroupTabPage(List <ISpectrum> spectra, GroupDefinition definition, StatusStrip statusStrip, TabControl parentTabControl, ProjectForm parentProjectForm, GroupBinding binding) : base(spectra, definition, statusStrip, parentTabControl, parentProjectForm) { this._binding = binding; grid.FixedCols = 3; UpdateName(); refreshReferences(); }
private void btnOK_Click(object sender, EventArgs e) { List <ISpectraContainer> containers = new List <ISpectraContainer>(); List <string> groupNames = new List <string>(); int i; for (i = 0; i < listChosenDocs.Items.Count; i++) { containers.Add((ISpectraContainer)listChosenDocs.Items[i]); } for (i = 0; i < listGroupNames.CheckedItems.Count; i++) { groupNames.Add((string)listGroupNames.CheckedItems[i]); } if (this._binding == null) { this._binding = new GroupBinding(containers, groupNames, this._project, txtName.Text); } else { this._binding.SetParticipants(containers, groupNames); this._binding.Name = txtName.Text; } }