Ejemplo n.º 1
0
        public void AddModule(string name, ModuleType type, VbaFolder source)
        {
            var path = _so.PathCombine(FolderPath, name + ModuleProcessing.ExtensionFromType(type));

            _so.FileCopy(source.FindModulePath(name, type), path);
            if (type == ModuleType.Form)
            {
                var frxPath = path.Substring(0, path.Length - 4) + ".frx";
                _so.FileCopy(source.FindFrxPath(name), frxPath);
            }
            ModuleFilePaths.Add(path);
        }
Ejemplo n.º 2
0
 public void ReplaceFormControls(string name, VbaFolder source)
 {
     _so.FileCopy(source.FindFrxPath(name), FindFrxPath(name), true);
 }
Ejemplo n.º 3
0
 public string GetFrxPath(string name) => _parent.FindFrxPath(name);