public void AddAssembly(string asmname, string origPath, string mappedPath)
        {
            if (origPath == null)
            {
                throw new ArgumentNullException("origPath");
            }
            var item = new AssemblyItem();

            assemblies.Add(item);
            item.SetAssembly(asmname);
            item.SetOriginalSourceFolder(origPath);


            if (System.IO.Directory.Exists(mappedPath))
            {
                item.SetRemappedSourceFolder(mappedPath);
            }
            else
            {
                item.SetRemappedSourceFolder("/");
            }

            this.assemblyList.PackStart(item);
            this.assemblyList.ShowAll();
        }
Ejemplo n.º 2
0
        public void AddAssembly( string asmname, string origPath, string mappedPath )
        {
            if ( origPath == null ) throw new ArgumentNullException("origPath");
            var item = new AssemblyItem();
            assemblies.Add(item);
            item.SetAssembly( asmname );
            item.SetOriginalSourceFolder( origPath );


            if ( System.IO.Directory.Exists( mappedPath ) ) {
                item.SetRemappedSourceFolder( mappedPath );
            } else {
                item.SetRemappedSourceFolder( "/" );
            }

            this.assemblyList.PackStart( item );
            this.assemblyList.ShowAll();
        }