public PlanEntry(IUnityContainer container, UIState state, long id) : this() { this.container = new PlanContainer(container, state, id); binding = new BindingSource(); binding.AddingNew += Binding_AddingNew; }
public PlanEntry(PlanContainer container) : this() { this.container = container; binding = new BindingSource(); binding.AddingNew += Binding_AddingNew; }
private void tsbAdd_Click(object sender, EventArgs e) { PlanContainer planContainer = new PlanContainer(this.container.UnityContainer, UIState.New, new Plan()); PlanEntry listForm = new PlanEntry(planContainer); listForm.ShowDialog(this); ICollection collection = container.BindingSource; //container.BindingSource.Add(); }