コード例 #1
0
        protected override void OnDataInitialize(VisualObject vObject)
        {
            TextAtlasObject textAtlasObject = vObject as TextAtlasObject;

            if (textAtlasObject == null || (!((ResourceData)this.LabelAtlasFileImage_CNB != (ResourceData)null) || textAtlasObject.LabelAtlasFileImage_CNB.GetResourceData().Type == this.LabelAtlasFileImage_CNB.Type) && textAtlasObject.LabelAtlasFileImage_CNB.GetResourceData().Type != EnumResourceType.Default)
            {
                return;
            }
            textAtlasObject.LabelAtlasFileImage_CNB = (ResourceFile)null;
        }
コード例 #2
0
        protected override void OnDataInitialize(VisualObject vObject)
        {
            TextAtlasObject textAtlasObject = vObject as TextAtlasObject;

            if (textAtlasObject != null)
            {
                if ((this.LabelAtlasFileImage_CNB != null && textAtlasObject.LabelAtlasFileImage_CNB.GetResourceData().Type != this.LabelAtlasFileImage_CNB.Type) || textAtlasObject.LabelAtlasFileImage_CNB.GetResourceData().Type == EnumResourceType.Default)
                {
                    textAtlasObject.LabelAtlasFileImage_CNB = null;
                }
            }
        }