コード例 #1
0
            public DataPanePopupCallback(DataSchemaItem dataSchemaItem)
            {
                DataSchemaNode parent = dataSchemaItem.DataSchemaNode.Parent;

                dataSchemaItem.DataSourceNode.DocumentNode.TypeResolver.GetType(parent.Type);
                this.property           = DesignDataConfigurationButton.WritablePropertyFromSchemaItem(dataSchemaItem);
                this.designDataFile     = DesignDataHelper.GetDesignDataFile(dataSchemaItem.DataSourceNode.DocumentNode);
                this.stringConfigurator = new SampleStringConfiguration(SampleDataFormatHelper.NormalizeFormat(SampleBasicType.String, (string)null, false), (string)null);
            }
コード例 #2
0
        private static bool CompareDesignDataSources(DocumentNode leftSource, DocumentNode rightSource)
        {
            if (leftSource == null || rightSource == null)
            {
                return(false);
            }
            IProjectItem designDataFile1 = DesignDataHelper.GetDesignDataFile(leftSource);

            if (designDataFile1 == null)
            {
                return(false);
            }
            IProjectItem designDataFile2 = DesignDataHelper.GetDesignDataFile(rightSource);

            return(designDataFile1 == designDataFile2);
        }
コード例 #3
0
 public DesignDataTypeConfigurationPopup(DataSchemaItem dataSchemaItem)
     : base((IPopupControlCallback) new DesignDataTypeConfigurationPopup.DataPanePopupCallback(dataSchemaItem), ConfigurationPlaceholder.StringFormat)
 {
     this.IsPerformingSchemaChange = !DesignDataHelper.GetDesignDataFile(dataSchemaItem.DataSourceNode.DocumentNode).IsOpen;
 }
コード例 #4
0
 public DataSourceNode(DocumentNode documentNode)
 {
     this.documentNode = documentNode;
     this.IsDesignData = DesignDataHelper.GetDesignDataFile(documentNode) != null;
 }
コード例 #5
0
 public static DocumentNode GetRootDesignDataNode(DocumentNode documentNode)
 {
     return(DesignDataHelper.GetRootDesignDataNode(DesignDataHelper.GetDesignDataFile(documentNode), (IProjectContext)documentNode.TypeResolver));
 }