예제 #1
0
        public DisableShowroomWatermarkChange(string acRoot)
        {
            _acLogo = AcPaths.GetAcLogoFilename(acRoot);
            if (File.Exists(_acLogo))
            {
                _acLogoBackup = _acLogo + "~at_bak";
                if (!File.Exists(_acLogoBackup))
                {
                    File.Move(_acLogo, _acLogoBackup);
                }
            }
            else if (!Directory.Exists(Path.GetDirectoryName(_acLogo) ?? ""))
            {
                return;
            }

            if (!File.Exists(_acLogo))
            {
                Resources.LogoAcApp.Save(_acLogo);
            }
        }