public WinFormsSchemaEditorNode(SchemaEditorView view,  NodeFieldReference fieldReference, object val, string name)
 {
     this.activeAttributes = new FieldReferenceCollection();
     this.attributes = new FieldReferenceCollection();
     this.nodeFields = new NodeFieldReferenceCollection();
     this.activeNodes = new SchemaEditorNodeCollection();
     this.fieldReference = fieldReference;
     this.view = view;
     this.val = val;
     this.attributesReadOnly = FieldReferenceCollection.ReadOnly(attributes);
     this.activeAttributesReadOnly = FieldReferenceCollection.ReadOnly(activeAttributes);
     this.activeNodesReadOnly = SchemaEditorNodeCollection.ReadOnly(activeNodes);
     this.nodeFieldsReadOnly = NodeFieldReferenceCollection.ReadOnly(nodeFields);
     this.nodeName = name;
     RefreshTitle();
 }
コード例 #2
0
 private void OpenSchemaDocument(Type t, string name, SaveFileDialog dlg)
 {
     try
     {
         SchemaEditorView editor = new SchemaEditorView(
             View,
             dlg,
             t,
             name);
         View.Display(editor);
     }
     catch(Exception e)
     {
         View.AddException(e);
     }
 }
コード例 #3
0
 private void CreateSchemaDocument(Type t, SaveFileDialog dlg)
 {
     SchemaEditorView editor = new SchemaEditorView(View,dlg,t);
     View.Display(editor);
 }