public ActivationController( ClientVersionCacheProxy clientVersionCacheProxy, ILogger <ActivationController> logger, TelemetryWriter telemetryWriter) { _clientVersionCacheProxy = clientVersionCacheProxy; _logger = logger; _telemetryWriter = telemetryWriter; }
public LogParameterTelemetryController( ClientVersionCacheProxy clientVersionCacheProxy, ILogger <LogParameterTelemetryController> logger, TelemetryWriter telemetryWriter) { _clientVersionCacheProxy = clientVersionCacheProxy; _logger = logger; _telemetryWriter = telemetryWriter; }
public EditorHost(string cml, string type) { InitializeComponent(); _editorType = type; AcmeOptions acmeOptions = new AcmeOptions(null); var used1D = SimulateGetUsed1DLabels(cml); MessageFromWpf.Text = ""; SystemHelper helper = new SystemHelper(); var telemetry = new TelemetryWriter(true, helper); switch (_editorType) { case "ACME": Editor acmeEditor = new Editor(); acmeEditor.EditorOptions = acmeOptions; acmeEditor.InitializeComponent(); elementHost1.Child = acmeEditor; // Configure Control acmeEditor.ShowFeedback = false; acmeEditor.TopLeft = new Point(Left, Top); acmeEditor.Telemetry = telemetry; acmeEditor.SetProperties(cml, used1D, acmeOptions); acmeEditor.OnFeedbackChange += AcmeEditorOnFeedbackChange; break; case "LABELS": LabelsEditor labelsEditor = new LabelsEditor(acmeOptions); labelsEditor.InitializeComponent(); elementHost1.Child = labelsEditor; // Configure Control labelsEditor.TopLeft = new Point(Left, Top); labelsEditor.Used1D = used1D; labelsEditor.PopulateTreeView(cml); break; default: CmlEditor cmlEditor = new CmlEditor(); cmlEditor.InitializeComponent(); elementHost1.Child = cmlEditor; // Configure Control cmlEditor.Cml = cml; break; } }
public MainForm() { InitializeComponent(); _helper = new SystemHelper(); _telemetry = new TelemetryWriter(true, _helper); var location = Assembly.GetExecutingAssembly().Location; var path = Path.GetDirectoryName(location); // Use either path or null below _editorOptions = new AcmeOptions(null); _renderOptions = new OoXmlV4Options(null); }
public FlexForm() { InitializeComponent(); _helper = new SystemHelper(); _telemetry = new TelemetryWriter(true, _helper); }