Beispiel #1
0
        private void OnAddStrongType(object sender, EventArgs e)
        {
            StrongTypeEditor <T> strongTypeEditor = this.NewStrongTypeEditor();

            if (base.ShowDialog(strongTypeEditor) == DialogResult.OK)
            {
                this.InternalAddValue(strongTypeEditor.StrongType);
            }
        }
Beispiel #2
0
        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);
            }
        }
Beispiel #3
0
 public StrongTypeEditorDataHandler(StrongTypeEditor <T> strongTypeEditor) : this(strongTypeEditor, null)
 {
 }
Beispiel #4
0
 public StrongTypeEditorDataHandler(StrongTypeEditor <T> strongTypeEditor, string schema)
 {
     this.strongTypeEditor = strongTypeEditor;
     this.schemaLoader     = new StrongTypeSchemaLoader(schema);
     this.InitializeDataTable();
 }