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); }
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); }
public DesignDataTypeConfigurationPopup(DataSchemaItem dataSchemaItem) : base((IPopupControlCallback) new DesignDataTypeConfigurationPopup.DataPanePopupCallback(dataSchemaItem), ConfigurationPlaceholder.StringFormat) { this.IsPerformingSchemaChange = !DesignDataHelper.GetDesignDataFile(dataSchemaItem.DataSourceNode.DocumentNode).IsOpen; }
public DataSourceNode(DocumentNode documentNode) { this.documentNode = documentNode; this.IsDesignData = DesignDataHelper.GetDesignDataFile(documentNode) != null; }
public static DocumentNode GetRootDesignDataNode(DocumentNode documentNode) { return(DesignDataHelper.GetRootDesignDataNode(DesignDataHelper.GetDesignDataFile(documentNode), (IProjectContext)documentNode.TypeResolver)); }