Here are the examples of the csharp api class System.Windows.Forms.BindingSource.Add(object) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
9 Examples
0
1. Example
Project: PowerPointLabs
Source File: CustomShapePane.cs
Source File: CustomShapePane.cs
private void ContextMenuStripAddCategoryClicked() { ShapesLabCategoryInfoDialogBox categoryInfoDialog = new ShapesLabCategoryInfoDialogBox(string.Empty); categoryInfoDialog.DialogConfirmedHandler += (string newCategoryName) => { Globals.ThisAddIn.ShapePresentation.AddCategory(newCategoryName); _categoryBinding.Add(newCategoryName); categoryBox.SelectedIndex = _categoryBinding.Count - 1; }; categoryInfoDialog.ShowDialog(); myShapeFlowLayout.Focus(); }
0
2. Example
Project: PowerPointLabs
Source File: CustomShapePane.cs
Source File: CustomShapePane.cs
private void ImportShapesFromLibrary(PowerPointShapeGalleryPresentation importShapeGallery) { foreach (var importCategory in importShapeGallery.Categories) { importShapeGallery.CopyCategory(importCategory); Globals.ThisAddIn.ShapePresentation.AddCategory(importCategory, false, true); _categoryBinding.Add(importCategory); } }
0
3. Example
Project: nDump
Source File: TableGrid.cs
Source File: TableGrid.cs
public void AddTables(IList<string> selectedItems) { // _bindingSource.SuspendBinding(); foreach (var selectedItem in selectedItems) { _bindingSource.Add(new SqlTableSelect(selectedItem, true)); } // _bindingSource.ResumeBinding(); // selectDataGridView.Refresh(); }
0
4. Example
Project: InnovatorAdmin
Source File: ConnectionEditor.cs
Source File: ConnectionEditor.cs
private void btnNew_Click(object sender, EventArgs e) { try { ClearMessage(); _bs.Add(new ConnectionData() { ConnectionName = "New Connection " + _newConnNumber++ }); } catch (Exception ex) { Utils.HandleError(ex); } }
0
5. Example
Project: InnovatorAdmin
Source File: ConnectionEditor.cs
Source File: ConnectionEditor.cs
private void btnCopy_Click(object sender, EventArgs e) { try { ClearMessage(); _bs.Add(((ConnectionData)_bs.Current).Clone()); } catch (Exception ex) { Utils.HandleError(ex); } }
0
6. Example
Project: NuGet
Source File: PackageSourcesOptionsControl.cs
Source File: PackageSourcesOptionsControl.cs
private void OnAddButtonClick(object sender, EventArgs e) { _allPackageSources.Add(CreateNewPackageSource()); // auto-select the newly-added item PackageSourcesListBox.SelectedIndex = PackageSourcesListBox.Items.Count - 1; }
0
7. Example
Project: btw-gtd
Source File: ProjectView.cs
Source File: ProjectView.cs
void IProjectView.ShowView(FilteredProject project) { _region.SwitchTo("project-view"); this.Sync(() => { _project = project.Info.ProjectId; _projectName.Text = string.Format("{0} ({1})", project.Info.Outcome, project.ActionCount); // TODO: smarter update for the case when we remove item if (_source.Count == project.FilteredActions.Count) { for (int i = 0; i < project.FilteredActions.Count; i++) { _source[i] = new ActionDisplay(project.FilteredActions[i], this); } return; } _source.Clear(); foreach (var action in project.FilteredActions) { _source.Add(new ActionDisplay(action, this)); } }); }
0
8. Example
Project: fdotoolbox
Source File: UniqueConstraintDialog.cs
Source File: UniqueConstraintDialog.cs
private void btnAdd_Click(object sender, EventArgs e) { List<string> names = new List<string>(); foreach (object o in chkProperties.CheckedItems) { names.Add(o.ToString()); } UniqueConstraintInfo uniq = new UniqueConstraintInfo(names.ToArray()); if (bs.Contains(uniq)) { MessageService.ShowError("This unique constraint already exists"); } else { bs.Add(uniq); } }
0
9. Example
Project: NugetCracker
Source File: PackageSourcesOptionsControl.cs
Source File: PackageSourcesOptionsControl.cs
private TryAddSourceResults TryAddSource() { var name = NewPackageName.Text.Trim/n ..... /n //View Source file for more details /n }