コード例 #1
0
        public MainForm()
        {
            InitializeComponent();
            toolStripStatusLabel.Text = string.Empty;

            var actionComponentFactory = ServiceProviderContainer.Instance.Value.Services.GetRequiredService <ActionComponentFactory>();

            actionComponent = actionComponentFactory.GetActionComponent(toolStripStatusLabel);

            typesStaticDataCache = ServiceProviderContainer.Instance.Value.Services.GetRequiredService <ITypesStaticDataCache>();
            this.assembly        = this.GetType().Assembly;

            textBoxAssemblyPath.Text = this.assembly.Location;
        }
コード例 #2
0
 protected ProgramArgsParserBase(
     ITypesStaticDataCache typesStaticDataCache)
 {
     this.TypesStaticDataCache = typesStaticDataCache ?? throw new ArgumentNullException(nameof(typesStaticDataCache));
     this.ArgsTypeWrapper      = typesStaticDataCache.Get(typeof(TProgramArgs));
 }
コード例 #3
0
 public ProgramArgsParser(
     ITypesStaticDataCache typesStaticDataCache) : base(
         typesStaticDataCache)
 {
 }