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


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

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

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

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

            ws = new Workshop();
        }
Beispiel #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;
        }
Beispiel #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;
            }
        }
Beispiel #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(); }
        }
Beispiel #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);
        }
Beispiel #9
0
 internal ImportSemiTool(IWrapperRegistry reg, IProviderRegistry prov)
 {
     this.reg  = reg;
     this.prov = prov;
 }
Beispiel #10
0
 public DefaultLoadBalancer(IProviderRegistry providerRegistry, ILoadBalancerStrategy strategy, IHeartbeatChecker heartbeatChecker) : base(providerRegistry)
 {
     this.strategy         = strategy;
     this.heartbeatChecker = heartbeatChecker;
 }
Beispiel #11
0
 public AbstractLoadBalancer(IProviderRegistry providerRegistry)
 {
     this.providerRegistry = providerRegistry;
 }
Beispiel #12
0
 public ProviderLocator(IProviderRegistry providerRegistry)
 {
     _providerRegistry = providerRegistry;
 }
Beispiel #13
0
 public HeartbeatChecker(IProviderRegistry providerRegistry, IScheduler scheduler)
 {
     this.providerRegistry = providerRegistry;
     this.scheduler        = scheduler;
 }
Beispiel #14
0
 /// <summary>
 /// Constructor
 /// </summary>
 public Nmap(IProviderRegistry provider) : base()
 {
     this.provider = provider;
     items         = new Interfaces.Files.IPackedFileDescriptor[0];
 }