public CusCtlTellPanelChar(Liplis.MainSystem.Liplis lips, ObjSetting os, string url, string title, string discription, int newsEmotion, int newsPoint, Bitmap charBody, EventHandler enter, IContainer components)
 {
     this.lips = lips;
     this.os = os;
     initCms(components);
     initDataPanelNonThum(url, title, discription, newsEmotion, newsPoint, charBody, enter);
 }
Exemple #2
1
        public void Init() {
            _settingsA = new ShellSettings { Name = "Alpha" };
            _settingsB = new ShellSettings { Name = "Beta", };
            _routes = new RouteCollection();

            var rootBuilder = new ContainerBuilder();
            rootBuilder.Register(ctx => _routes);
            rootBuilder.RegisterType<ShellRoute>().InstancePerDependency();
            rootBuilder.RegisterType<RunningShellTable>().As<IRunningShellTable>().SingleInstance();
            rootBuilder.RegisterModule(new WorkContextModule());
            rootBuilder.RegisterType<WorkContextAccessor>().As<IWorkContextAccessor>().InstancePerMatchingLifetimeScope("shell");
            rootBuilder.RegisterType<HttpContextAccessor>().As<IHttpContextAccessor>();
            rootBuilder.RegisterType<ExtensionManager>().As<IExtensionManager>();
            rootBuilder.RegisterType<StubCacheManager>().As<ICacheManager>();
            rootBuilder.RegisterType<StubAsyncTokenProvider>().As<IAsyncTokenProvider>();
            rootBuilder.RegisterType<StubParallelCacheContext>().As<IParallelCacheContext>();

            _rootContainer = rootBuilder.Build();

            _containerA = _rootContainer.BeginLifetimeScope(
                "shell",
                builder => {
                    builder.Register(ctx => _settingsA);
                    builder.RegisterType<RoutePublisher>().As<IRoutePublisher>().InstancePerMatchingLifetimeScope("shell");
                });

            _containerB = _rootContainer.BeginLifetimeScope(
                "shell",
                builder => {
                    builder.Register(ctx => _settingsB);
                    builder.RegisterType<RoutePublisher>().As<IRoutePublisher>().InstancePerMatchingLifetimeScope("shell");
                });
        }
    private static List<BindingSourceNode> GetChildBindingSources(
      IContainer container, BindingSource parent, BindingSourceNode parentNode)
    {
      List<BindingSourceNode> children = new List<BindingSourceNode>();

#if !WEBGUI
      foreach (System.ComponentModel.Component component in container.Components)
#else
      foreach (IComponent component in container.Components)
#endif
      {
        if (component is BindingSource)
        {
          BindingSource temp = component as BindingSource;
          if (temp.DataSource != null && temp.DataSource.Equals(parent))
          {
            BindingSourceNode childNode = new BindingSourceNode(temp);
            children.Add(childNode);
            childNode.Children.AddRange(GetChildBindingSources(container, temp, childNode));
            childNode.Parent = parentNode;
          }
        }
      }

      return children;
    }
Exemple #4
0
        public UICommand(IContainer container)
        {
            container.Add(this);

            InitializeComponent();
            ClickForwarderDelegate = new EventHandler(ClickForwarder);
        }
        public void Dispose()
        {
            if (container != null)
                container.Dispose();

            container = null;
        }
        public void Init() {
            var builder = new ContainerBuilder();
            // builder.RegisterModule(new ImplicitCollectionSupportModule());
            builder.RegisterModule(new ContentModule());
            builder.RegisterType<DefaultContentManager>().As<IContentManager>().SingleInstance();
            builder.RegisterType<DefaultContentManagerSession>().As<IContentManagerSession>();

            builder.RegisterType<AlphaHandler>().As<IContentHandler>();
            builder.RegisterType<BetaHandler>().As<IContentHandler>();
            builder.RegisterType<GammaHandler>().As<IContentHandler>();
            builder.RegisterType<DeltaHandler>().As<IContentHandler>();
            builder.RegisterType<EpsilonHandler>().As<IContentHandler>();
            builder.RegisterType<FlavoredHandler>().As<IContentHandler>();
            builder.RegisterType<StyledHandler>().As<IContentHandler>();

            builder.RegisterGeneric(typeof(Repository<>)).As(typeof(IRepository<>));

            _session = _sessionFactory.OpenSession();
            builder.RegisterInstance(new DefaultContentManagerTests.TestSessionLocator(_session)).As<ISessionLocator>();

            _session.Delete(string.Format("from {0}", typeof(GammaRecord).FullName));
            _session.Delete(string.Format("from {0}", typeof(DeltaRecord).FullName));
            _session.Delete(string.Format("from {0}", typeof(EpsilonRecord).FullName));
            _session.Delete(string.Format("from {0}", typeof(ContentItemVersionRecord).FullName));
            _session.Delete(string.Format("from {0}", typeof(ContentItemRecord).FullName));
            _session.Delete(string.Format("from {0}", typeof(ContentTypeRecord).FullName));
            _session.Flush();
            _session.Clear();

            _container = builder.Build();
            _manager = _container.Resolve<IContentManager>();

        }
        public bool Start(string[] args)
        {
            this.container = new ContainerConfiguration().Create();

            var userDetails = container.Resolve<IUserDetails>(new NamedParameter("container", this.container));

            if (!userDetails.IsUserSetup())
            {
                if (args.Length > 0 && args[0] == "setup")
                {
                    SetupUser(userDetails);
                }
                else
                {
            #if DEBUG
                    userDetails.SetUsername("matthewrouse1");
                    userDetails.SetPassword("fakePass");
                    userDetails.SetEmailAddress("*****@*****.**");
                    userDetails.SetRepoPath(@"C:\repos\alb");
                    userDetails.SetRepoURL(@"[email protected]:AdvancedLegal/alb.git");
            #else
                    throw new Exception("Error: No user set up, please re-run in setup mode");
            #endif
                }
            }

            fligUserServiceContainer = new FLIGServerHostContainer(this.container);
            fligUserServiceContainer.StartHostedServices();

            return true;
        }
 public JQSecurityForm(JQSecurity jqs, IDesignerHost host)
 {
     InitializeComponent();
     DesignerHost = host;
     ict = host.Container;
     jqSecurity = jqs;
 }
Exemple #9
0
        public static void Init()
        {
            var serviceBusConnectionString = ConfigurationManager.ConnectionStrings["ServiceBus"].ConnectionString;
            var builder = new ContainerBuilder();
            var typeProvider = new AssemblyScanningTypeProvider(
                   Assembly.GetAssembly(typeof(ExampleEventHandler)),
                   Assembly.GetAssembly(typeof(ExampleCommand))
                   );

            var applicationName = Assembly.GetExecutingAssembly().ToNimbusName();
            var instanceName = Environment.MachineName;

            builder.RegisterNimbus(typeProvider);
            builder.RegisterType<NimbusLogger>().As<ILogger>();
            builder.Register(componetContext => new BusBuilder()
                .Configure()
                .WithConnectionString(serviceBusConnectionString)
                .WithNames(applicationName, instanceName)
                .WithTypesFrom(typeProvider)
                .WithDefaultTimeout(TimeSpan.FromSeconds(30))
                .WithAutofacDefaults(componetContext)
                .Build())
                .As<IBus>()
                .AutoActivate()
                .OnActivated(o => o.Instance.Start())
                .SingleInstance();

            _container = builder.Build();
        }
        private static void InitializeStartupRunners(IContainer existingContainer)
        {
            var mappingDefinitions = existingContainer.GetAllInstances<IRunAtStartup>().ToList();
            mappingDefinitions.ForEach(mappingDefinition => mappingDefinition.Init());

            Mapper.AssertConfigurationIsValid();
        }
 /// <summary>
 /// Base method that initializes the connection on the entity context connection
 /// </summary>
 public virtual void Initialize(IContainer container)
 {
     if (EntityContextConfiguration != null)
     {
         EntityContextConfiguration.Connection.Initialize(container);
     }
 }
 public StructureMapDependencyScope(IContainer container)
 {
     if (container == null) {
         throw new ArgumentNullException("container");
     }
     Container = container;
 }
 public static void Detach(IContainer container)
 {
     if (Equals(container, Container))
     {
         Container = null;
     }
 }
Exemple #14
0
		public static void Main (string[] args)
		{
		    var kernel = new StandardKernel();
		    Container = new Container(kernel);

		    Configure.With(Container)
                .UsingJsonStorage("JsonDB")
                .Initialize();

		    var commandCoordinator = ServiceLocator.Current.GetInstance<ICommandCoordinator>();

			var command = new CreatePerson(Guid.NewGuid(), "First", "Person");
			var result = commandCoordinator.Handle(command);
			if (!result.Success)
			{
				Console.WriteLine("Handling of command failed");
				Console.WriteLine("Exception : {0}\nStack Trace : {1}", result.Exception.Message, result.Exception.StackTrace);
			}

			var queries = Container.Get<IPersonView>();
			var persons = queries.GetAll();
			foreach (var person in persons)
			{
				Console.WriteLine("Person ({0}) - {1} {2}", person.Id, person.FirstName, person.LastName);
			}
		}
Exemple #15
0
 /// <summary>
 /// Close the Defined Container.
 /// </summary>
 public void CloseContainer(IContainer containerSource)
 {
     //TODO: Need Test this Feature. Probably is a Client Packet.
     PacketBuilder Builder = new PacketBuilder(0x6F, connection);
     Builder.Append(containerSource.Index);
     Connection.Send(Builder.GetPacket());
 }
 public TfsHelper(IContainer container, TextWriter stdout, Script script)
 {
     _container = container;
     _stdout = stdout;
     _script = script;
     _versionControlServer = new FakeVersionControlServer(_script);
 }
Exemple #17
0
 public void Init(IEnumerable<Type> dataMigrations) {
    
     var builder = new ContainerBuilder();
     _folders = new StubFolders();
     var contentDefinitionManager = new Mock<IContentDefinitionManager>().Object;
     
     builder.RegisterInstance(new ShellSettings { DataTablePrefix = "TEST_"});
     
     builder.RegisterType<SqlServerDataServicesProvider>().As<IDataServicesProvider>();
     builder.RegisterType<DataServicesProviderFactory>().As<IDataServicesProviderFactory>();
     builder.RegisterType<NullInterpreter>().As<IDataMigrationInterpreter>();
     builder.RegisterInstance(_folders).As<IExtensionFolders>();
     builder.RegisterInstance(contentDefinitionManager).As<IContentDefinitionManager>();
     builder.RegisterType<ExtensionManager>().As<IExtensionManager>();
     builder.RegisterType<DataMigrationManager>().As<IDataMigrationManager>();
     builder.RegisterGeneric(typeof(Repository<>)).As(typeof(IRepository<>));
     builder.RegisterType<StubCacheManager>().As<ICacheManager>();
     builder.RegisterType<StubParallelCacheContext>().As<IParallelCacheContext>();
     builder.RegisterType<StubAsyncTokenProvider>().As<IAsyncTokenProvider>();
     _session = _sessionFactory.OpenSession();
     builder.RegisterInstance(new DefaultContentManagerTests.TestSessionLocator(_session)).As<ISessionLocator>().As<ITransactionManager>();
     foreach(var type in dataMigrations) {
         builder.RegisterType(type).As<IDataMigration>();
     }
     _container = builder.Build();
     _container.Resolve<IExtensionManager>();
     _dataMigrationManager = _container.Resolve<IDataMigrationManager>();
     _repository = _container.Resolve<IRepository<DataMigrationRecord>>();
     _transactionManager = _container.Resolve<ITransactionManager>();
     InitDb();
 }
        public void Init() {
            _contentDefinitionManager = new Mock<IContentDefinitionManager>();

            var builder = new ContainerBuilder();
            builder.RegisterType<DefaultContentManager>().As<IContentManager>();
            builder.RegisterType<DefaultContentManagerSession>().As<IContentManagerSession>();
            builder.RegisterInstance(_contentDefinitionManager.Object);
            builder.RegisterInstance(new Mock<IContentDisplay>().Object);

            builder.RegisterType<AlphaPartHandler>().As<IContentHandler>();
            builder.RegisterType<BetaPartHandler>().As<IContentHandler>();
            builder.RegisterType<GammaPartHandler>().As<IContentHandler>();
            builder.RegisterType<DeltaPartHandler>().As<IContentHandler>();
            builder.RegisterType<EpsilonPartHandler>().As<IContentHandler>();
            builder.RegisterType<FlavoredPartHandler>().As<IContentHandler>();
            builder.RegisterType<StyledHandler>().As<IContentHandler>();
            builder.RegisterType<DefaultShapeTableManager>().As<IShapeTableManager>();
            builder.RegisterType<ShapeTableLocator>().As<IShapeTableLocator>();
            builder.RegisterType<DefaultShapeFactory>().As<IShapeFactory>();
            builder.RegisterType<DefaultContentDisplay>().As<IContentDisplay>();

            builder.RegisterType<StubExtensionManager>().As<IExtensionManager>();

            builder.RegisterGeneric(typeof(Repository<>)).As(typeof(IRepository<>));

            _session = _sessionFactory.OpenSession();
            builder.RegisterInstance(new TestSessionLocator(_session)).As<ISessionLocator>();

            _container = builder.Build();
            _manager = _container.Resolve<IContentManager>();
        }
        /// <summary>
        /// Initializes an instance of <see cref="ChapterValidatorProvider"/> ChapterValidatorProvider
        /// </summary>
        /// <param name="typeDiscoverer">An instance of ITypeDiscoverer to help identify and register <see cref="IChapterValidator"> IChapterValidator</see> implementations
        /// </param>
        /// <param name="container">An instance of <see cref="IContainer"/> to create concrete instances of validators</param>
        public ChapterValidatorProvider(ITypeDiscoverer typeDiscoverer, IContainer container)
        {
            _typeDiscoverer = typeDiscoverer;
            _container = container;

            Initialize();
        }
 static CentralDispatch()
 {
     var builder = new ContainerBuilder();
     BindKernel(builder);
     _container = builder.Build();
     InitilizeApp();
 }
 public IndexerManagerService(IContainer c, IConfigurationService config, Logger l, ICacheService cache)
 {
     container = c;
     configService = config;
     logger = l;
     cacheService = cache;
 }
Exemple #22
0
        public UsbDs3(IContainer container)
            : base(USB_CLASS_GUID)
        {
            container.Add(this);

            InitializeComponent();
        }
        public SilkveilContainerTests()
        {
            var containerBuilder = new ContainerBuilder();
            containerBuilder.Register(typeof(IContainerBinder), typeof(ContainerBinder));
            containerBuilder.Register(typeof(IRequestListener), typeof(DownloadRequestListener));
            containerBuilder.Register(typeof(IRequestListener), typeof(RedirectRequestListener));
            containerBuilder.Register(typeof(IMappingResolver<IDownloadMapping>), typeof(DownloadMappingResolver));
            containerBuilder.Register(typeof(IMappingResolver<IRedirectMapping>), typeof(RedirectMappingResolver));
            containerBuilder.Register<IMappingProvider<IDownloadMapping>>(
                c =>
                {
                    var downloadMappingProvider = new DownloadMappingProvider(c);
                    downloadMappingProvider.Initialize();
                    return downloadMappingProvider;
                });
            containerBuilder.Register<IMappingProvider<IRedirectMapping>>(
                c =>
                {
                    var redirectMappingProvider = new RedirectMappingProvider(c);
                    redirectMappingProvider.Initialize();
                    return redirectMappingProvider;
                });
            containerBuilder.Register(typeof(IContentSource), typeof(HttpContentSource));
            containerBuilder.Register(typeof(IContentSource), typeof(FileContentSource));
            containerBuilder.Register(typeof(IStreamSplitter), typeof(StreamSplitter));
            containerBuilder.Register(typeof(IHttpStreamFactory), typeof(HttpStreamFactory));
            containerBuilder.Register(typeof(ISilkveilContainer), typeof(SilkveilContainer));

            containerBuilder.Register(typeof(IDownloadMapping), typeof(DownloadMapping));
            containerBuilder.Register(typeof(IRedirectMapping), typeof(RedirectMapping));

            this._container = containerBuilder.Build();
        }
		public DesignModeSite (IComponent component, string name, IContainer container, IServiceProvider serviceProvider)
		{
			_component = component;
			_container = container;
			_componentName = name;
			_serviceProvider = serviceProvider;
		}
Exemple #25
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PathResolver"/> class.
 /// </summary>
 /// <param name="session">The session.</param>
 /// <param name="pathData">The path data.</param>
 /// <param name="controllerMapper">The controller mapper.</param>
 /// <param name="container">The container.</param>
 public PathResolver(IDocumentSession session, IPathData pathData, IControllerMapper controllerMapper, IContainer container)
 {
     _pathData = pathData;
     _controllerMapper = controllerMapper;
     _container = container;
     _session = session;
 }
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            // Register: create and configure the container
            _container = BootstrapContainer();

            DependencyResolver.SetResolver(new AutofacDependencyResolver(_container));

            var builder = new ContainerBuilder();

            //var configurationRepository =
            //    new ConfigurationRepository.ConfigurationRepository() as IConfigurationRepository;

            //builder.Register(c => configurationRepository).As<IConfigurationRepository>().SingleInstance();

            builder.RegisterType<StashCoreApiConsumer>().As<IStashCoreApiConsumer>();

            builder.RegisterType<PullTrackerRepository>().As<IPullTrackerRepository>();

            builder.RegisterType<RequestProcessFacade>().As<IRequestProcessFacade>();

            IContainer localContainer = builder.Build();

            AutofacHelper.Scope = localContainer;

            _containerProvider = new ContainerProvider(localContainer);
        }
 public object GetInstance(InstanceContext instanceContext)
 {
     if (_container == null)
         _container = WCF_IOC.Infra.CrossCutting.IoC.IoC.Initialize();
     return _container.GetInstance(_serviceType);
     //ObjectFactory.GetInstance(_serviceType);
 }
 protected override void ConfigureApplication(IContainer container)
 {
     var viewFactory = container.Resolve<IViewFactory>();
     var main = viewFactory.Resolve<LoginViewModel>();
     var np = new NavigationPage(main);
     _application.MainPage = np;
 }
Exemple #29
0
 /// <summary>
 ///     Initializes the singleton application object.  This is the first line of authored code
 ///     executed, and as such is the logical equivalent of main() or WinMain().
 /// </summary>
 public App()
 {
     InitializeComponent();
     Suspending += OnSuspending;
     UnhandledException += ExceptionHelper.UnhandledExceptionLogger;
     Container = AutoFacConfiguration.Configure();
 }
		private void RegisterContainer() {
			var builder = new ContainerBuilder();
			builder.RegisterControllers(Assembly.GetExecutingAssembly());
			_pluginServicee.Startup(builder);
			_container = builder.Build();
			DependencyResolver.SetResolver(new AutofacDependencyResolver(_container));
		}
Exemple #31
0
 public JobDispatcher(IContainer container)
 {
     _container = container;
 }
 public BindingNavigator(IContainer container)
     : base()
 {
     bindingSource = null;
     container.Add(this);
 }
Exemple #33
0
        public SuperText(IContainer container)
        {
            container.Add(this);

            InitializeComponent();
        }
 public ContainerManager(IContainer container)
 {
     _container = container;
 }
 public StructureMapNamedHandlerResolver()
 {
     _container = new Container(ConfigureContainer);
 }
Exemple #36
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Server));
     this.btStart                 = new System.Windows.Forms.Button();
     this.picStatus               = new System.Windows.Forms.PictureBox();
     this.btStop                  = new System.Windows.Forms.Button();
     this.btExit                  = new System.Windows.Forms.Button();
     this.statusStrip             = new System.Windows.Forms.StatusStrip();
     this.toolStripStatusLabel1   = new System.Windows.Forms.ToolStripStatusLabel();
     this.notifyIcon              = new System.Windows.Forms.NotifyIcon(this.components);
     this.contextMenuStrip        = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.toolStripMenuItem2      = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem1      = new System.Windows.Forms.ToolStripMenuItem();
     this.填入模似数据ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.清空模拟数据ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.设置基础数据ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.showToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
     this.btResent                = new System.Windows.Forms.Button();
     this.btClear                 = new System.Windows.Forms.Button();
     this.txtOrderID              = new System.Windows.Forms.TextBox();
     this.process1                = new System.Diagnostics.Process();
     this.TimerCounter            = new System.Windows.Forms.Timer(this.components);
     this.label1                  = new System.Windows.Forms.Label();
     this.label2                  = new System.Windows.Forms.Label();
     this.label3                  = new System.Windows.Forms.Label();
     this.toolTip1                = new System.Windows.Forms.ToolTip(this.components);
     this.label4                  = new System.Windows.Forms.Label();
     this.label5                  = new System.Windows.Forms.Label();
     this.label6                  = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.picStatus)).BeginInit();
     this.statusStrip.SuspendLayout();
     this.contextMenuStrip.SuspendLayout();
     this.SuspendLayout();
     //
     // btStart
     //
     this.btStart.Image    = ((System.Drawing.Image)(resources.GetObject("btStart.Image")));
     this.btStart.Location = new System.Drawing.Point(273, 92);
     this.btStart.Name     = "btStart";
     this.btStart.Size     = new System.Drawing.Size(42, 24);
     this.btStart.TabIndex = 0;
     this.btStart.UseVisualStyleBackColor = true;
     this.btStart.Click += new System.EventHandler(this.btStart_Click);
     //
     // picStatus
     //
     this.picStatus.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("picStatus.BackgroundImage")));
     this.picStatus.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.picStatus.Location = new System.Drawing.Point(67, 76);
     this.picStatus.Name     = "picStatus";
     this.picStatus.Size     = new System.Drawing.Size(100, 114);
     this.picStatus.TabIndex = 1;
     this.picStatus.TabStop  = false;
     //
     // btStop
     //
     this.btStop.Enabled  = false;
     this.btStop.Image    = ((System.Drawing.Image)(resources.GetObject("btStop.Image")));
     this.btStop.Location = new System.Drawing.Point(273, 122);
     this.btStop.Name     = "btStop";
     this.btStop.Size     = new System.Drawing.Size(42, 24);
     this.btStop.TabIndex = 2;
     this.btStop.UseVisualStyleBackColor = true;
     this.btStop.Click += new System.EventHandler(this.btStop_Click);
     //
     // btExit
     //
     this.btExit.Image    = ((System.Drawing.Image)(resources.GetObject("btExit.Image")));
     this.btExit.Location = new System.Drawing.Point(273, 152);
     this.btExit.Name     = "btExit";
     this.btExit.Size     = new System.Drawing.Size(42, 24);
     this.btExit.TabIndex = 3;
     this.btExit.UseVisualStyleBackColor = true;
     this.btExit.Click += new System.EventHandler(this.btExit_Click);
     //
     // statusStrip
     //
     this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.toolStripStatusLabel1
     });
     this.statusStrip.Location = new System.Drawing.Point(0, 228);
     this.statusStrip.Name     = "statusStrip";
     this.statusStrip.Size     = new System.Drawing.Size(423, 22);
     this.statusStrip.TabIndex = 4;
     this.statusStrip.Text     = "statusStrip1";
     //
     // toolStripStatusLabel1
     //
     this.toolStripStatusLabel1.Name = "toolStripStatusLabel1";
     this.toolStripStatusLabel1.Size = new System.Drawing.Size(0, 17);
     //
     // notifyIcon
     //
     this.notifyIcon.ContextMenuStrip  = this.contextMenuStrip;
     this.notifyIcon.Icon              = ((System.Drawing.Icon)(resources.GetObject("notifyIcon.Icon")));
     this.notifyIcon.Text              = "电子标签服务";
     this.notifyIcon.Visible           = true;
     this.notifyIcon.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.notifyIcon_MouseDoubleClick);
     //
     // contextMenuStrip
     //
     this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.toolStripMenuItem2,
         this.toolStripMenuItem1,
         this.showToolStripMenuItem
     });
     this.contextMenuStrip.Name = "contextMenuStrip";
     this.contextMenuStrip.Size = new System.Drawing.Size(95, 70);
     //
     // toolStripMenuItem2
     //
     this.toolStripMenuItem2.Name   = "toolStripMenuItem2";
     this.toolStripMenuItem2.Size   = new System.Drawing.Size(94, 22);
     this.toolStripMenuItem2.Text   = "显示";
     this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click);
     //
     // toolStripMenuItem1
     //
     this.toolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.填入模似数据ToolStripMenuItem,
         this.清空模拟数据ToolStripMenuItem,
         this.设置基础数据ToolStripMenuItem
     });
     this.toolStripMenuItem1.Name = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size = new System.Drawing.Size(94, 22);
     this.toolStripMenuItem1.Text = "测试";
     //
     // 填入模似数据ToolStripMenuItem
     //
     this.填入模似数据ToolStripMenuItem.Name   = "填入模似数据ToolStripMenuItem";
     this.填入模似数据ToolStripMenuItem.Size   = new System.Drawing.Size(142, 22);
     this.填入模似数据ToolStripMenuItem.Text   = "填入测试数据";
     this.填入模似数据ToolStripMenuItem.Click += new System.EventHandler(this.填入模似数据ToolStripMenuItem_Click);
     //
     // 清空模拟数据ToolStripMenuItem
     //
     this.清空模拟数据ToolStripMenuItem.Name   = "清空模拟数据ToolStripMenuItem";
     this.清空模拟数据ToolStripMenuItem.Size   = new System.Drawing.Size(142, 22);
     this.清空模拟数据ToolStripMenuItem.Text   = "清空测试数据";
     this.清空模拟数据ToolStripMenuItem.Click += new System.EventHandler(this.清空模拟数据ToolStripMenuItem_Click);
     //
     // 设置基础数据ToolStripMenuItem
     //
     this.设置基础数据ToolStripMenuItem.Name   = "设置基础数据ToolStripMenuItem";
     this.设置基础数据ToolStripMenuItem.Size   = new System.Drawing.Size(142, 22);
     this.设置基础数据ToolStripMenuItem.Text   = "设置基础数据";
     this.设置基础数据ToolStripMenuItem.Click += new System.EventHandler(this.设置基础数据ToolStripMenuItem_Click);
     //
     // showToolStripMenuItem
     //
     this.showToolStripMenuItem.Name    = "showToolStripMenuItem";
     this.showToolStripMenuItem.Size    = new System.Drawing.Size(94, 22);
     this.showToolStripMenuItem.Text    = "show";
     this.showToolStripMenuItem.Visible = false;
     this.showToolStripMenuItem.Click  += new System.EventHandler(this.showToolStripMenuItem_Click);
     //
     // btResent
     //
     this.btResent.Image    = ((System.Drawing.Image)(resources.GetObject("btResent.Image")));
     this.btResent.Location = new System.Drawing.Point(273, 201);
     this.btResent.Name     = "btResent";
     this.btResent.Size     = new System.Drawing.Size(42, 24);
     this.btResent.TabIndex = 8;
     this.btResent.UseVisualStyleBackColor = true;
     this.btResent.Click += new System.EventHandler(this.btResent_Click);
     //
     // btClear
     //
     this.btClear.Image    = ((System.Drawing.Image)(resources.GetObject("btClear.Image")));
     this.btClear.Location = new System.Drawing.Point(369, 201);
     this.btClear.Name     = "btClear";
     this.btClear.Size     = new System.Drawing.Size(42, 24);
     this.btClear.TabIndex = 9;
     this.toolTip1.SetToolTip(this.btClear, "删除无用的数据");
     this.btClear.UseVisualStyleBackColor = true;
     this.btClear.Click += new System.EventHandler(this.btClear_Click);
     //
     // txtOrderID
     //
     this.txtOrderID.Location = new System.Drawing.Point(68, 204);
     this.txtOrderID.Name     = "txtOrderID";
     this.txtOrderID.Size     = new System.Drawing.Size(154, 21);
     this.txtOrderID.TabIndex = 10;
     //
     // process1
     //
     this.process1.StartInfo.Domain                 = "";
     this.process1.StartInfo.LoadUserProfile        = false;
     this.process1.StartInfo.Password               = null;
     this.process1.StartInfo.StandardErrorEncoding  = null;
     this.process1.StartInfo.StandardOutputEncoding = null;
     this.process1.StartInfo.UserName               = "";
     this.process1.SynchronizingObject              = this;
     //
     // TimerCounter
     //
     this.TimerCounter.Interval = 1000;
     this.TimerCounter.Tag      = "0";
     this.TimerCounter.Tick    += new System.EventHandler(this.TimerCounter_Tick);
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(238, 98);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(29, 12);
     this.label1.TabIndex = 11;
     this.label1.Text     = "启动";
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(238, 128);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(29, 12);
     this.label2.TabIndex = 12;
     this.label2.Text     = "暂停";
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(238, 158);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(29, 12);
     this.label3.TabIndex = 13;
     this.label3.Text     = "退出";
     //
     // toolTip1
     //
     this.toolTip1.IsBalloon    = true;
     this.toolTip1.ShowAlways   = true;
     this.toolTip1.ToolTipTitle = "删除";
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Location = new System.Drawing.Point(334, 207);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(29, 12);
     this.label4.TabIndex = 14;
     this.label4.Text     = "清空";
     //
     // label5
     //
     this.label5.AutoSize = true;
     this.label5.Location = new System.Drawing.Point(238, 207);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(29, 12);
     this.label5.TabIndex = 15;
     this.label5.Text     = "重发";
     //
     // label6
     //
     this.label6.AutoSize = true;
     this.label6.Location = new System.Drawing.Point(12, 207);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(53, 12);
     this.label6.TabIndex = 16;
     this.label6.Text     = "订单号:";
     //
     // Server
     //
     this.AutoScaleMode         = System.Windows.Forms.AutoScaleMode.Inherit;
     this.BackColor             = System.Drawing.SystemColors.ActiveBorder;
     this.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
     this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.ClientSize            = new System.Drawing.Size(423, 250);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.txtOrderID);
     this.Controls.Add(this.btClear);
     this.Controls.Add(this.btResent);
     this.Controls.Add(this.statusStrip);
     this.Controls.Add(this.btExit);
     this.Controls.Add(this.picStatus);
     this.Controls.Add(this.btStop);
     this.Controls.Add(this.btStart);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "Server";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "数字化仓储标签服务管理系统";
     this.Load           += new System.EventHandler(this.Server_Load);
     this.FormClosing    += new System.Windows.Forms.FormClosingEventHandler(this.Server_FormClosing);
     ((System.ComponentModel.ISupportInitialize)(this.picStatus)).EndInit();
     this.statusStrip.ResumeLayout(false);
     this.statusStrip.PerformLayout();
     this.contextMenuStrip.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
 public StructureMapWebApiDependencyScope(IContainer container)
     : base(container)
 {
 }
Exemple #38
0
 public StyleManager(IContainer container)
 {
     container.Add(this);
     InitializeComponent();
     this.Init();
 }
        public Component1(IContainer container)
        {
            container.Add(this);

            InitializeComponent();
        }
 /// <summary>
 /// Specifies the IoC container to use.
 /// </summary>
 public ConfigurationDsl UseContainer(IContainer container)
 {
     _configuration.Container = container;
     return(this);
 }
 public ContainerIsRemovingAttemptEvent(IContainer container, EntityUid entityUid) : base(container, entityUid)
 {
 }
 public ContainerGettingRemovedAttemptEvent(IContainer container, EntityUid entityUid) : base(container, entityUid)
 {
 }
Exemple #43
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TaskDialogRadioButton"/> class with the specified container.
 /// </summary>
 /// <param name="container">The <see cref="IContainer"/> to add the <see cref="TaskDialogRadioButton"/> to.</param>
 public TaskDialogRadioButton(IContainer container)
     : base(container)
 {
 }
 public ContainerAttemptEventBase(IContainer container, EntityUid entityUid)
 {
     Container = container;
     EntityUid = entityUid;
 }
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.treeView1  = new MyTreeView();
     this.groupBox1  = new System.Windows.Forms.GroupBox();
     this.comboBox1  = new System.Windows.Forms.ComboBox();
     this.comboBox2  = new System.Windows.Forms.ComboBox();
     this.timer1     = new System.Windows.Forms.Timer(this.components);
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // treeView1
     //
     this.treeView1.Dock = System.Windows.Forms.DockStyle.Fill;
     //this.treeView1.DrawMode = System.Windows.Forms.TreeViewDrawMode.OwnerDrawText;
     this.treeView1.Font      = new System.Drawing.Font("Courier New", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.treeView1.Location  = new System.Drawing.Point(3, 16);
     this.treeView1.Name      = "treeView1";
     this.treeView1.Size      = new System.Drawing.Size(693, 259);
     this.treeView1.TabIndex  = 0;
     this.treeView1.DrawNode += new System.Windows.Forms.DrawTreeNodeEventHandler(this.treeView1_DrawNode);
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                    | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox1.Controls.Add(this.treeView1);
     this.groupBox1.Location = new System.Drawing.Point(0, 30);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(699, 278);
     this.groupBox1.TabIndex = 1;
     this.groupBox1.TabStop  = false;
     //
     // comboBox1
     //
     this.comboBox1.FormattingEnabled = true;
     this.comboBox1.Location          = new System.Drawing.Point(88, 3);
     this.comboBox1.Name     = "comboBox1";
     this.comboBox1.Size     = new System.Drawing.Size(121, 21);
     this.comboBox1.TabIndex = 2;
     this.comboBox1.Visible  = false;
     //
     // comboBox2
     //
     this.comboBox2.FormattingEnabled = true;
     this.comboBox2.Location          = new System.Drawing.Point(356, 3);
     this.comboBox2.Name     = "comboBox2";
     this.comboBox2.Size     = new System.Drawing.Size(121, 21);
     this.comboBox2.TabIndex = 3;
     this.comboBox2.Visible  = false;
     //
     // timer1
     //
     this.timer1.Interval = 333;
     //
     // MAVLinkInspector
     //
     this.ClientSize = new System.Drawing.Size(698, 311);
     this.Controls.Add(this.comboBox2);
     this.Controls.Add(this.comboBox1);
     this.Controls.Add(this.groupBox1);
     this.Name         = "MAVLinkInspector";
     this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MAVLinkInspector_FormClosing);
     this.groupBox1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemple #46
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
     this.htmluiControl1  = new Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl();
     this.scrollersFrame1 = new Syncfusion.Windows.Forms.ScrollersFrame(this.components);
     this.gradientPanel1  = new Syncfusion.Windows.Forms.Tools.GradientPanel();
     ((System.ComponentModel.ISupportInitialize)(this.htmluiControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.gradientPanel1)).BeginInit();
     this.gradientPanel1.SuspendLayout();
     this.SuspendLayout();
     //
     // htmluiControl1
     //
     this.htmluiControl1.AutoScroll                    = true;
     this.htmluiControl1.AutoScrollMinSize             = new System.Drawing.Size(513, 337);
     this.htmluiControl1.BackColor                     = System.Drawing.Color.White;
     this.htmluiControl1.DefaultFormat.BackgroundColor = System.Drawing.SystemColors.Control;
     this.htmluiControl1.DefaultFormat.ForeColor       = System.Drawing.SystemColors.ControlText;
     this.htmluiControl1.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.htmluiControl1.Location      = new System.Drawing.Point(0, 0);
     this.htmluiControl1.Name          = "htmluiControl1";
     this.htmluiControl1.Size          = new System.Drawing.Size(530, 352);
     this.htmluiControl1.TabIndex      = 0;
     this.htmluiControl1.Text          = resources.GetString("htmluiControl1.Text");
     this.htmluiControl1.LoadFinished += new System.EventHandler(this.htmluiControl1_LoadFinished);
     this.htmluiControl1.LoadError    += new Syncfusion.Windows.Forms.HTMLUI.LoadErrorEventHandler(this.htmluiControl1_LoadError);
     //
     // scrollersFrame1
     //
     this.scrollersFrame1.AttachedTo            = this.htmluiControl1;
     this.scrollersFrame1.CustomRender          = null;
     this.scrollersFrame1.MetroColorScheme      = Syncfusion.Windows.Forms.MetroColorScheme.Managed;
     this.scrollersFrame1.SizeGripperVisibility = Syncfusion.Windows.Forms.SizeGripperVisibility.Auto;
     this.scrollersFrame1.VisualStyle           = Syncfusion.Windows.Forms.ScrollBarCustomDrawStyles.Metro;
     //
     // gradientPanel1
     //
     this.gradientPanel1.BorderColor = System.Drawing.Color.Gray;
     this.gradientPanel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.gradientPanel1.Controls.Add(this.htmluiControl1);
     this.gradientPanel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.gradientPanel1.Location = new System.Drawing.Point(10, 10);
     this.gradientPanel1.Name     = "gradientPanel1";
     this.gradientPanel1.Size     = new System.Drawing.Size(532, 354);
     this.gradientPanel1.TabIndex = 1;
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BorderColor       = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.CaptionAlign      = System.Windows.Forms.HorizontalAlignment.Center;
     this.ClientSize        = new System.Drawing.Size(552, 374);
     this.Controls.Add(this.gradientPanel1);
     this.DropShadow       = true;
     this.Icon             = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.IconAlign        = System.Windows.Forms.HorizontalAlignment.Left;
     this.IconTextRelation = System.Windows.Forms.LeftRightAlignment.Left;
     this.MetroColor       = System.Drawing.Color.White;
     this.MinimumSize      = new System.Drawing.Size(564, 410);
     this.Name             = "Form1";
     this.Padding          = new System.Windows.Forms.Padding(10);
     this.StartPosition    = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text             = "Bookmarks";
     this.WindowState      = System.Windows.Forms.FormWindowState.Maximized;
     this.Load            += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.htmluiControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.gradientPanel1)).EndInit();
     this.gradientPanel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemple #47
0
 public ControllerResolver(IContainer container)
 {
     _container = container;
 }
Exemple #48
0
 public APIManager()
 {
     this.cloneObjectSchema = new CloneObjectSchema();
     this.aPIManager        = new Dictionary <string, List <APIManagerModal> >();
     this.container         = Container.GetInstance();
 }
 public ViewModelLocator()
 {
     _container = Startup.BootStrap();
 }
Exemple #50
0
 public static void Initialize(HttpConfiguration config, IContainer container)
 {
     config.DependencyResolver = new AutofacWebApiDependencyResolver(container);
 }
 public static TResult Run <T, TResult, TParam>(this IContainer <T> container, Func <T, TParam, TResult> func, TParam param)
 {
     return(container.Run(func, param));
 }
Exemple #52
0
 public BenchEngine(IContainer container)
 {
     _container = container;
 }
Exemple #53
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormImportTemplateFromText));
     this.textBoxTemplateCode = new FastColoredTextBoxNS.FastColoredTextBox();
     this.buttonCancel        = new System.Windows.Forms.Button();
     this.buttonOK            = new System.Windows.Forms.Button();
     ((System.ComponentModel.ISupportInitialize)(this.textBoxTemplateCode)).BeginInit();
     this.SuspendLayout();
     //
     // textBoxTemplateCode
     //
     this.textBoxTemplateCode.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                              | System.Windows.Forms.AnchorStyles.Left)
                                                                             | System.Windows.Forms.AnchorStyles.Right)));
     this.textBoxTemplateCode.AutoCompleteBracketsList = new char[] {
         '(',
         ')',
         '{',
         '}',
         '[',
         ']',
         '\"',
         '\"',
         '\'',
         '\''
     };
     this.textBoxTemplateCode.AutoIndent              = false;
     this.textBoxTemplateCode.AutoIndentChars         = false;
     this.textBoxTemplateCode.AutoIndentExistingLines = false;
     this.textBoxTemplateCode.AutoScrollMinSize       = new System.Drawing.Size(27, 17);
     this.textBoxTemplateCode.BackBrush      = null;
     this.textBoxTemplateCode.BorderStyle    = System.Windows.Forms.BorderStyle.FixedSingle;
     this.textBoxTemplateCode.CharHeight     = 17;
     this.textBoxTemplateCode.CharWidth      = 8;
     this.textBoxTemplateCode.Cursor         = System.Windows.Forms.Cursors.IBeam;
     this.textBoxTemplateCode.DisabledColor  = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(180)))), ((int)(((byte)(180)))), ((int)(((byte)(180)))));
     this.textBoxTemplateCode.Font           = new System.Drawing.Font("Consolas", 11.25F);
     this.textBoxTemplateCode.IsReplaceMode  = false;
     this.textBoxTemplateCode.Location       = new System.Drawing.Point(12, 12);
     this.textBoxTemplateCode.Name           = "textBoxTemplateCode";
     this.textBoxTemplateCode.Paddings       = new System.Windows.Forms.Padding(0);
     this.textBoxTemplateCode.SelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255)))));
     this.textBoxTemplateCode.ServiceColors  = ((FastColoredTextBoxNS.ServiceColors)(resources.GetObject("textBoxTemplateCode.ServiceColors")));
     this.textBoxTemplateCode.Size           = new System.Drawing.Size(600, 380);
     this.textBoxTemplateCode.TabIndex       = 6;
     this.textBoxTemplateCode.Zoom           = 100;
     //
     // buttonCancel
     //
     this.buttonCancel.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonCancel.Location = new System.Drawing.Point(500, 398);
     this.buttonCancel.Name     = "buttonCancel";
     this.buttonCancel.Size     = new System.Drawing.Size(112, 32);
     this.buttonCancel.TabIndex = 8;
     this.buttonCancel.Text     = "Cancel";
     this.buttonCancel.UseVisualStyleBackColor = true;
     this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
     //
     // buttonOK
     //
     this.buttonOK.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonOK.Location = new System.Drawing.Point(382, 398);
     this.buttonOK.Name     = "buttonOK";
     this.buttonOK.Size     = new System.Drawing.Size(112, 32);
     this.buttonOK.TabIndex = 9;
     this.buttonOK.Text     = "OK";
     this.buttonOK.UseVisualStyleBackColor = true;
     this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
     //
     // FormImportTemplateFromText
     //
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
     this.ClientSize    = new System.Drawing.Size(624, 442);
     this.Controls.Add(this.buttonOK);
     this.Controls.Add(this.buttonCancel);
     this.Controls.Add(this.textBoxTemplateCode);
     this.Font          = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Margin        = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.MinimumSize   = new System.Drawing.Size(640, 480);
     this.Name          = "FormImportTemplateFromText";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text          = "FormImportTemplateFromText";
     ((System.ComponentModel.ISupportInitialize)(this.textBoxTemplateCode)).EndInit();
     this.ResumeLayout(false);
 }
 public static TResult Run <T, TResult>(this IContainer <T> container, Func <T, TResult> func)
 {
     return(container.Run(static (t, func) => func(t), func));
Exemple #55
0
 /// <summary>Initializes a new instance of the <see cref="VisualBadge" /> class.</summary>
 /// <param name="container">The container.</param>
 public VisualBadge(IContainer container) : this()
 {
     container.Add(this);
 }
Exemple #56
0
 /// <summary>
 ///     Initializes a new instance of the class
 /// </summary>
 public WordDictionary(IContainer container)
 {
     container.Add(this);
     InitializeComponent();
 }
Exemple #57
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     components = new System.ComponentModel.Container();
 }
 public Wellbore141DataAdapter(IContainer container, IDatabaseProvider databaseProvider)
     : base(container, databaseProvider, ObjectNames.Wellbore141)
 {
     Logger.Debug("Instance created.");
 }
Exemple #59
0
 public Diagnostics(IContainer container)
 {
     _container = container;
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmExtendedDetails));
     this.panel1              = new System.Windows.Forms.Panel();
     this.chkAllowEdit        = new System.Windows.Forms.CheckBox();
     this.btnOk               = new System.Windows.Forms.Button();
     this.pnlLogView          = new System.Windows.Forms.Panel();
     this.txtSecondaryMessage = new System.Windows.Forms.TextBox();
     this.contextMenuStrip1   = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.selectionIsPathToolStripMenuItem      = new System.Windows.Forms.ToolStripMenuItem();
     this.fileExistsToolStripMenuItem           = new System.Windows.Forms.ToolStripMenuItem();
     this.openContainingFolderToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.selectionIsGayMlToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
     this.filterSelectionToolStripMenuItem      = new System.Windows.Forms.ToolStripMenuItem();
     this.tsmiFilterExcludeSelection            = new System.Windows.Forms.ToolStripMenuItem();
     this.tsmiFilterIncludeSelection            = new System.Windows.Forms.ToolStripMenuItem();
     this.splitter2 = new System.Windows.Forms.Splitter();
     this.splitter1 = new System.Windows.Forms.Splitter();
     this.txtEntryFurtherDetails = new System.Windows.Forms.TextBox();
     this.txtDebugEntry          = new System.Windows.Forms.TextBox();
     this.panel1.SuspendLayout();
     this.pnlLogView.SuspendLayout();
     this.contextMenuStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.Color.MistyRose;
     this.panel1.Controls.Add(this.chkAllowEdit);
     this.panel1.Controls.Add(this.btnOk);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.panel1.Location = new System.Drawing.Point(0, 306);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(674, 34);
     this.panel1.TabIndex = 4;
     //
     // chkAllowEdit
     //
     this.chkAllowEdit.AutoSize = true;
     this.chkAllowEdit.Location = new System.Drawing.Point(12, 6);
     this.chkAllowEdit.Name     = "chkAllowEdit";
     this.chkAllowEdit.Size     = new System.Drawing.Size(85, 17);
     this.chkAllowEdit.TabIndex = 5;
     this.chkAllowEdit.Text     = "Allow editing";
     this.chkAllowEdit.UseVisualStyleBackColor = true;
     this.chkAllowEdit.CheckedChanged         += new System.EventHandler(this.chkAllowEdit_CheckedChanged);
     //
     // btnOk
     //
     this.btnOk.Anchor                  = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnOk.BackColor               = System.Drawing.Color.RosyBrown;
     this.btnOk.DialogResult            = System.Windows.Forms.DialogResult.No;
     this.btnOk.Location                = new System.Drawing.Point(558, 5);
     this.btnOk.Name                    = "btnOk";
     this.btnOk.Size                    = new System.Drawing.Size(104, 23);
     this.btnOk.TabIndex                = 2;
     this.btnOk.Text                    = "Close";
     this.btnOk.UseVisualStyleBackColor = false;
     //
     // pnlLogView
     //
     this.pnlLogView.Controls.Add(this.txtSecondaryMessage);
     this.pnlLogView.Controls.Add(this.splitter2);
     this.pnlLogView.Controls.Add(this.splitter1);
     this.pnlLogView.Controls.Add(this.txtEntryFurtherDetails);
     this.pnlLogView.Controls.Add(this.txtDebugEntry);
     this.pnlLogView.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.pnlLogView.Location = new System.Drawing.Point(0, 0);
     this.pnlLogView.Name     = "pnlLogView";
     this.pnlLogView.Size     = new System.Drawing.Size(674, 306);
     this.pnlLogView.TabIndex = 7;
     //
     // txtSecondaryMessage
     //
     this.txtSecondaryMessage.BackColor        = System.Drawing.SystemColors.Window;
     this.txtSecondaryMessage.ContextMenuStrip = this.contextMenuStrip1;
     this.txtSecondaryMessage.Dock             = System.Windows.Forms.DockStyle.Fill;
     this.txtSecondaryMessage.Location         = new System.Drawing.Point(0, 143);
     this.txtSecondaryMessage.MinimumSize      = new System.Drawing.Size(0, 19);
     this.txtSecondaryMessage.Multiline        = true;
     this.txtSecondaryMessage.Name             = "txtSecondaryMessage";
     this.txtSecondaryMessage.ReadOnly         = true;
     this.txtSecondaryMessage.ScrollBars       = System.Windows.Forms.ScrollBars.Vertical;
     this.txtSecondaryMessage.Size             = new System.Drawing.Size(674, 51);
     this.txtSecondaryMessage.TabIndex         = 3;
     this.txtSecondaryMessage.Text             = "AA";
     //
     // contextMenuStrip1
     //
     this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.selectionIsPathToolStripMenuItem,
         this.selectionIsGayMlToolStripMenuItem,
         this.filterSelectionToolStripMenuItem
     });
     this.contextMenuStrip1.Name     = "contextMenuStrip1";
     this.contextMenuStrip1.Size     = new System.Drawing.Size(166, 70);
     this.contextMenuStrip1.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuStrip1_Opening);
     //
     // selectionIsPathToolStripMenuItem
     //
     this.selectionIsPathToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.fileExistsToolStripMenuItem,
         this.openContainingFolderToolStripMenuItem
     });
     this.selectionIsPathToolStripMenuItem.Name = "selectionIsPathToolStripMenuItem";
     this.selectionIsPathToolStripMenuItem.Size = new System.Drawing.Size(165, 22);
     this.selectionIsPathToolStripMenuItem.Text = "Selection Is Path";
     //
     // fileExistsToolStripMenuItem
     //
     this.fileExistsToolStripMenuItem.Name   = "fileExistsToolStripMenuItem";
     this.fileExistsToolStripMenuItem.Size   = new System.Drawing.Size(202, 22);
     this.fileExistsToolStripMenuItem.Text   = "File Exists:";
     this.fileExistsToolStripMenuItem.Click += new System.EventHandler(this.fileExistsToolStripMenuItem_Click);
     //
     // openContainingFolderToolStripMenuItem
     //
     this.openContainingFolderToolStripMenuItem.Name   = "openContainingFolderToolStripMenuItem";
     this.openContainingFolderToolStripMenuItem.Size   = new System.Drawing.Size(202, 22);
     this.openContainingFolderToolStripMenuItem.Text   = "Open Containing Folder:";
     this.openContainingFolderToolStripMenuItem.Click += new System.EventHandler(this.openContainingFolderToolStripMenuItem_Click);
     //
     // selectionIsGayMlToolStripMenuItem
     //
     this.selectionIsGayMlToolStripMenuItem.Name   = "selectionIsGayMlToolStripMenuItem";
     this.selectionIsGayMlToolStripMenuItem.Size   = new System.Drawing.Size(165, 22);
     this.selectionIsGayMlToolStripMenuItem.Text   = "Selection is Xml";
     this.selectionIsGayMlToolStripMenuItem.Click += new System.EventHandler(this.selectionIsGayMlToolStripMenuItem_Click);
     //
     // filterSelectionToolStripMenuItem
     //
     this.filterSelectionToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.tsmiFilterExcludeSelection,
         this.tsmiFilterIncludeSelection
     });
     this.filterSelectionToolStripMenuItem.Name = "filterSelectionToolStripMenuItem";
     this.filterSelectionToolStripMenuItem.Size = new System.Drawing.Size(165, 22);
     this.filterSelectionToolStripMenuItem.Text = "Filter Selection";
     //
     // tsmiFilterExcludeSelection
     //
     this.tsmiFilterExcludeSelection.Name   = "tsmiFilterExcludeSelection";
     this.tsmiFilterExcludeSelection.Size   = new System.Drawing.Size(133, 22);
     this.tsmiFilterExcludeSelection.Text   = "Exclude ()";
     this.tsmiFilterExcludeSelection.Click += new System.EventHandler(this.tsmiFilterExcludeSelection_Click);
     //
     // tsmiFilterIncludeSelection
     //
     this.tsmiFilterIncludeSelection.Name   = "tsmiFilterIncludeSelection";
     this.tsmiFilterIncludeSelection.Size   = new System.Drawing.Size(133, 22);
     this.tsmiFilterIncludeSelection.Text   = "Include ()";
     this.tsmiFilterIncludeSelection.Click += new System.EventHandler(this.txtmiFilterIncludeSelection_Click);
     //
     // splitter2
     //
     this.splitter2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
     this.splitter2.Dock      = System.Windows.Forms.DockStyle.Bottom;
     this.splitter2.Location  = new System.Drawing.Point(0, 194);
     this.splitter2.Name      = "splitter2";
     this.splitter2.Size      = new System.Drawing.Size(674, 9);
     this.splitter2.TabIndex  = 7;
     this.splitter2.TabStop   = false;
     //
     // splitter1
     //
     this.splitter1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
     this.splitter1.Dock      = System.Windows.Forms.DockStyle.Top;
     this.splitter1.Location  = new System.Drawing.Point(0, 133);
     this.splitter1.Name      = "splitter1";
     this.splitter1.Size      = new System.Drawing.Size(674, 10);
     this.splitter1.TabIndex  = 6;
     this.splitter1.TabStop   = false;
     //
     // txtEntryFurtherDetails
     //
     this.txtEntryFurtherDetails.BackColor        = System.Drawing.SystemColors.Window;
     this.txtEntryFurtherDetails.ContextMenuStrip = this.contextMenuStrip1;
     this.txtEntryFurtherDetails.Dock             = System.Windows.Forms.DockStyle.Bottom;
     this.txtEntryFurtherDetails.Location         = new System.Drawing.Point(0, 203);
     this.txtEntryFurtherDetails.MinimumSize      = new System.Drawing.Size(0, 19);
     this.txtEntryFurtherDetails.Multiline        = true;
     this.txtEntryFurtherDetails.Name             = "txtEntryFurtherDetails";
     this.txtEntryFurtherDetails.ReadOnly         = true;
     this.txtEntryFurtherDetails.ScrollBars       = System.Windows.Forms.ScrollBars.Vertical;
     this.txtEntryFurtherDetails.Size             = new System.Drawing.Size(674, 103);
     this.txtEntryFurtherDetails.TabIndex         = 4;
     this.txtEntryFurtherDetails.Text             = "AA";
     //
     // txtDebugEntry
     //
     this.txtDebugEntry.BackColor        = System.Drawing.Color.Lavender;
     this.txtDebugEntry.ContextMenuStrip = this.contextMenuStrip1;
     this.txtDebugEntry.Dock             = System.Windows.Forms.DockStyle.Top;
     this.txtDebugEntry.Location         = new System.Drawing.Point(0, 0);
     this.txtDebugEntry.MinimumSize      = new System.Drawing.Size(0, 19);
     this.txtDebugEntry.Multiline        = true;
     this.txtDebugEntry.Name             = "txtDebugEntry";
     this.txtDebugEntry.ReadOnly         = true;
     this.txtDebugEntry.ScrollBars       = System.Windows.Forms.ScrollBars.Vertical;
     this.txtDebugEntry.Size             = new System.Drawing.Size(674, 133);
     this.txtDebugEntry.TabIndex         = 1;
     //
     // frmExtendedDetails
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this.btnOk;
     this.ClientSize        = new System.Drawing.Size(674, 340);
     this.Controls.Add(this.pnlLogView);
     this.Controls.Add(this.panel1);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MinimumSize   = new System.Drawing.Size(514, 255);
     this.Name          = "frmExtendedDetails";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text          = "frmExtendedDetails";
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.pnlLogView.ResumeLayout(false);
     this.pnlLogView.PerformLayout();
     this.contextMenuStrip1.ResumeLayout(false);
     this.ResumeLayout(false);
 }