示例#1
0
        /// <summary>
        /// 用用数据.
        /// </summary>
        /// <param name="iData">数据.</param>
        /// <param name="iForceClear">强制清空标志位.</param>
        protected override void ApplyData(BuildInfoData iData, bool iForceClear)
        {
            if (null == iData)
            {
                return;
            }

            // 清空
            if (true == iForceClear)
            {
                this.Clear();
            }

            // 默认数据
            this.Data.Default.BuildName         = iData.Default.BuildName;
            this.Data.Default.BuildID           = iData.Default.BuildID;
            this.Data.Default.BuildVersion      = iData.Default.BuildVersion;
            this.Data.Default.BuildShortVersion = iData.Default.BuildShortVersion;
            this.Data.Default.BuildVersionCode  = iData.Default.BuildVersionCode;
            this.Data.Default.CenterVersion     = iData.Default.CenterVersion;
            this.Data.Default.PlatformType      = iData.Default.PlatformType;
            this.Data.Default.LogLevel          = iData.Default.LogLevel;

            // 选项数据
            this.Data.Options.OptionsSettings = iData.Options.OptionsSettings;

            UtilsAsset.SetAssetDirty(this);
        }
示例#2
0
        /// <summary>
        /// 清空.
        /// </summary>
        /// <param name="iIsFileDelete">删除数据文件标志位.</param>
        /// <param name="iDirPath">Asset存放目录文件(不指定:当前选定对象所在目录).</param>
        public virtual void Clear(bool iIsFileDelete = false, string iDirPath = null)
        {
            // 清空数据
            this.ClearData();

            // 删除数据文件
            if (true == iIsFileDelete)
            {
                UtilsAsset.DeleteFile <T2> (iDirPath);
            }

            UtilsAsset.SetAssetDirty(this);
        }
示例#3
0
        /// <summary>
        /// 清空.
        /// </summary>
        /// <param name="iIsFileDelete">删除数据文件标志位.</param>
        public virtual void Clear(bool iIsFileDelete = false)
        {
            // 清空数据
            this.ClearData();

            // 删除数据文件
            if (true == iIsFileDelete)
            {
                UtilsAsset.DeleteFile <BuildInfoData> ();
            }

            UtilsAsset.SetAssetDirty(this);
        }
示例#4
0
        /// <summary>
        /// 用用数据.
        /// </summary>
        /// <param name="iData">数据.</param>
        /// <param name="iForceClear">强制清空标志位.</param>
        protected override void ApplyData(AutoRefreshImagesSettingData iData, bool iForceClear)
        {
            if (null == iData)
            {
                return;
            }

            // 清空
            if (true == iForceClear)
            {
                this.Clear();
            }

            this.Data.Settings = iData.Settings;

            UtilsAsset.SetAssetDirty(this);
        }
示例#5
0
        /// <summary>
        /// 用用数据.
        /// </summary>
        /// <param name="iData">数据.</param>
        /// <param name="iForceClear">强制清空标志位.</param>
        protected override void ApplyData(BuildInfoData iData, bool iForceClear)
        {
            if (null == iData)
            {
                return;
            }

            // 清空
            if (true == iForceClear)
            {
                this.Clear();
            }

            this.Data.BuildName         = iData.BuildName;
            this.Data.BuildID           = iData.BuildID;
            this.Data.BuildVersion      = iData.BuildVersion;
            this.Data.BuildShortVersion = iData.BuildShortVersion;
            this.Data.BuildVersionCode  = iData.BuildVersionCode;
            this.Data.CenterVersion     = iData.CenterVersion;

            UtilsAsset.SetAssetDirty(this);
        }