예제 #1
0
        internal ScenegraphTool(IWrapperRegistry reg, IProviderRegistry prov)
        {
            this.reg  = reg;
            this.prov = prov;


            sg = new ScenegraphForm();
        }
예제 #2
0
        internal SimsTool(IWrapperRegistry reg, IProviderRegistry prov)
        {
            this.reg  = reg;
            this.prov = prov;

            if (registry == null)
            {
                registry = Helper.WindowsRegistry;
            }
        }
예제 #3
0
        internal PhotoStudioTool(IWrapperRegistry reg, IProviderRegistry prov)
        {
            this.reg  = reg;
            this.prov = prov;

            if (registry == null)
            {
                registry = Helper.WindowsRegistry;
            }
            ps = null;
        }
예제 #4
0
        internal WorkshopTool(IWrapperRegistry reg, IProviderRegistry prov)
        {
            this.reg  = reg;
            this.prov = prov;

            if (registry == null)
            {
                registry = Helper.WindowsRegistry;
            }

            ws = new Workshop();
        }
예제 #5
0
        internal DownloadScanTool(IWrapperRegistry reg, IProviderRegistry prov)
        {
            this.reg  = reg;
            this.prov = prov;

            if (registry == null)
            {
                registry = Helper.WindowsRegistry;
            }

            ds      = new DownloadScan();
            ds.prov = this.prov;
        }
예제 #6
0
        internal SearchTool(IWrapperRegistry reg, IProviderRegistry prov)
        {
            this.reg  = reg;
            this.prov = prov;
            sc        = new Search();
            sc.prov   = prov;
            flname    = "";

            if (registry == null)
            {
                registry = Helper.WindowsRegistry;
            }
        }
예제 #7
0
        /// <summary>
        /// Build the SceneGraph
        /// </summary>
        /// <param name="prov"></param>
        /// <param name="simpe_pkg"></param>
        public void Execute(IProviderRegistry prov, SimPe.Interfaces.Files.IPackageFile simpe_pkg, ref SimPe.Interfaces.Files.IPackedFileDescriptor pfd)
        {
            this.pfd      = pfd;
            this.open_pkg = simpe_pkg;
            WaitingScreen.Wait();
            try
            {
                llopen.Enabled = false;
                SimPe.Interfaces.Files.IPackageFile orgpkg = simpe_pkg;

                DateTime start = DateTime.Now;
                FileTable.FileIndex.Load();
                SimPe.Interfaces.Scenegraph.IScenegraphFileIndex fileindex = FileTable.FileIndex.Clone();
                fileindex.AddIndexFromPackage(simpe_pkg);

                SimPe.Interfaces.Scenegraph.IScenegraphFileIndex oldfileindex = FileTable.FileIndex;
                FileTable.FileIndex = fileindex;

                //find txtr File

                /*WaitingScreen.UpdateMessage("Collecting Global Files");
                 * string[] modelnames = Scenegraph.FindModelNames(simpe_pkg);
                 * try
                 * {
                 *  ObjectCloner oc = new ObjectCloner();
                 *  oc.RcolModelClone(modelnames, false, false);
                 *  simpe_pkg = oc.Package;
                 * }
                 * catch (ScenegraphException) {}*/

                FileTable.FileIndex = oldfileindex;


                gb.BuildGraph(simpe_pkg, fileindex);
                gb.FindUnused(orgpkg);

                WaitingScreen.Stop();
                TimeSpan runtime = DateTime.Now.Subtract(start);
                if (Helper.WindowsRegistry.HiddenMode)
                {
                    Text = "Runtime: " + runtime.TotalSeconds + " sek. = " + runtime.TotalMinutes + " min.";
                }
                RemoteControl.ShowSubForm(this);

                pfd = this.pfd;
            }
#if !DEBUG
            catch (Exception ex) { Helper.ExceptionMessage("", ex); }
#endif
            finally { WaitingScreen.Stop(); }
        }
예제 #8
0
        private static MigrationOptions GetOptions(out IEnumerable <ProviderInfo> providerInfos)
        {
            IProviderMetadata metadata = A.Fake <IProviderMetadata>();

            A.CallTo(() => metadata.MaximumDbObjectNameLength).Returns(MaximumSupportedLength);
            A.CallTo(() => metadata.MajorVersion).Returns(Platform.MajorVersion);
            A.CallTo(() => metadata.InvariantName).Returns("System.Data.Odbc"); // for the Odbc specific tests

            IProvider provider = new ProviderStub();

            IProviderRegistry providerRegistry = A.Fake <IProviderRegistry>();

            A.CallTo(() => providerRegistry.GetProvider(metadata)).Returns(provider);
            providerInfos = new[] { new ProviderInfo(provider, metadata) };

            var options = new MigrationOptions();

            options.SupportedPlatforms.AddOrReplaceMinimumRequirement(Platform);
            return(options);
        }
예제 #9
0
 internal ImportSemiTool(IWrapperRegistry reg, IProviderRegistry prov)
 {
     this.reg  = reg;
     this.prov = prov;
 }
예제 #10
0
 public DefaultLoadBalancer(IProviderRegistry providerRegistry, ILoadBalancerStrategy strategy, IHeartbeatChecker heartbeatChecker) : base(providerRegistry)
 {
     this.strategy         = strategy;
     this.heartbeatChecker = heartbeatChecker;
 }
예제 #11
0
 public AbstractLoadBalancer(IProviderRegistry providerRegistry)
 {
     this.providerRegistry = providerRegistry;
 }
예제 #12
0
 public ProviderLocator(IProviderRegistry providerRegistry)
 {
     _providerRegistry = providerRegistry;
 }
예제 #13
0
 public HeartbeatChecker(IProviderRegistry providerRegistry, IScheduler scheduler)
 {
     this.providerRegistry = providerRegistry;
     this.scheduler        = scheduler;
 }
예제 #14
0
 /// <summary>
 /// Constructor
 /// </summary>
 public Nmap(IProviderRegistry provider) : base()
 {
     this.provider = provider;
     items         = new Interfaces.Files.IPackedFileDescriptor[0];
 }