private void OnAddStrongType(object sender, EventArgs e) { StrongTypeEditor <T> strongTypeEditor = this.NewStrongTypeEditor(); if (base.ShowDialog(strongTypeEditor) == DialogResult.OK) { this.InternalAddValue(strongTypeEditor.StrongType); } }
private void OnEditStrongType(object sender, EventArgs e) { StrongTypeEditor <T> strongTypeEditor = this.EditStrongTypeEditor(); ((StrongTypeEditorDataHandler <T>)strongTypeEditor.Validator).IsOpenedAsEdit = true; strongTypeEditor.StrongType = (T)((object)base.DataListView.SelectedObject); if (base.ShowDialog(strongTypeEditor) == DialogResult.OK) { this.InternalEditValue(base.DataListView.SelectedIndices[0], strongTypeEditor.StrongType); } }
public StrongTypeEditorDataHandler(StrongTypeEditor <T> strongTypeEditor) : this(strongTypeEditor, null) { }
public StrongTypeEditorDataHandler(StrongTypeEditor <T> strongTypeEditor, string schema) { this.strongTypeEditor = strongTypeEditor; this.schemaLoader = new StrongTypeSchemaLoader(schema); this.InitializeDataTable(); }