public OutputConfiguration GetConfiguration() { var result = new OutputConfiguration(MethodBase.GetCurrentMethod().DeclaringType.Name); result.InternalParameters.Add("CustomerId", Customer.All); return result; }
public XmlNode GetData(OutputConfiguration configuration) { return ServiceHandler.Instance.Client.GetCountriesShortList( ServiceHandler.Instance.SiteCode, ServiceHandler.Instance.ApiId, ServiceHandler.Instance.ApiPassword ); }
public OutputConfigurationViewModel(OutputConfiguration outputConfiguration) { OutputConfigurationData = outputConfiguration; if (OutputConfigurationData.LinkConnection != null && OutputConfigurationData.LinkConnection.Target != null) { OutputLinkConnection = new LinkConnectionViewModel(OutputConfigurationData.LinkConnection); } }
public XmlNode GetData(OutputConfiguration configuration) { return(ServiceHandler.Instance.Client.GetCustomersShortList( ServiceHandler.Instance.SiteCode, ServiceHandler.Instance.ApiId, ServiceHandler.Instance.ApiPassword, configuration.GetIntegerSafe("CustomerStatusId"), configuration.GetIntegerSafe("AccountManagerId"))); }
public XmlNode GetData(OutputConfiguration configuration) { return ServiceHandler.Instance.Client.GetContactsShortList( ServiceHandler.Instance.SiteCode, ServiceHandler.Instance.ApiId, ServiceHandler.Instance.ApiPassword, configuration.GetIntegerSafe("CustomerId") ); }
public PesterConfiguration() { Run = new RunConfiguration(); Filter = new FilterConfiguration(); CodeCoverage = new CodeCoverageConfiguration(); TestResult = new TestResultConfiguration(); Should = new ShouldConfiguration(); Debug = new DebugConfiguration(); Output = new OutputConfiguration(); }
public XmlNode GetData(OutputConfiguration configuration) { return(ServiceHandler.Instance.Client.GetTasksShortList( ServiceHandler.Instance.SiteCode, ServiceHandler.Instance.ApiId, ServiceHandler.Instance.ApiPassword, configuration.GetIntegerSafe("ProjectId"), configuration.GetIntegerSafe("Status"), configuration.GetIntegerSafe("TaskTypeId"))); }
public OutputConfiguration GetConfiguration() { var result = new OutputConfiguration(MethodBase.GetCurrentMethod().DeclaringType.Name); result.InternalParameters.Add("ProjectId", Project.All); result.InternalParameters.Add("Status", TaskStatus.Active); result.InternalParameters.Add("TaskTypeId", TaskType.All); return result; }
public XmlNode GetData(OutputConfiguration configuration) { return ServiceHandler.Instance.Client.GetTasksShortList( ServiceHandler.Instance.SiteCode, ServiceHandler.Instance.ApiId, ServiceHandler.Instance.ApiPassword, configuration.GetIntegerSafe("ProjectId"), configuration.GetIntegerSafe("Status"), configuration.GetIntegerSafe("TaskTypeId") ); }
public XmlNode GetData(OutputConfiguration configuration) { return(ServiceHandler.Instance.Client.GetTimeOffRegistrationsRaw( ServiceHandler.Instance.SiteCode, ServiceHandler.Instance.ApiId, ServiceHandler.Instance.ApiPassword, configuration.GetIntegerSafe("EmployeeId"), configuration.GetIntegerSafe("DepartmentId"), configuration.GetDateTimeSafe("FromDate"), configuration.GetDateTimeSafe("ToDate"))); }
public OutputConfiguration GetConfiguration(ExportFormat format) { var result = new OutputConfiguration(MethodBase.GetCurrentMethod().DeclaringType.Name) { ExportFormat = format }; result.InternalParameters.Add("CustomerId", Customer.All); return(result); }
public OutputConfiguration GetConfiguration() { var result = new OutputConfiguration(MethodBase.GetCurrentMethod().DeclaringType.Name); result.InternalParameters.Add("CustomerId", Customer.All); result.InternalParameters.Add("CustomerStatusId", CustomerStatus.All); result.InternalParameters.Add("AccountManagerId", AccountManager.All); result.InternalParameters.Add("ForeignId", string.Empty); return result; }
public XmlNode GetData(OutputConfiguration configuration) { return(ServiceHandler.Instance.Client.GetAllocationsRaw( ServiceHandler.Instance.SiteCode, ServiceHandler.Instance.ApiId, ServiceHandler.Instance.ApiPassword, configuration.GetIntegerSafe("AllocationId"), configuration.GetIntegerSafe("TaskId"), configuration.GetIntegerSafe("EmployeeId"), configuration.GetIntegerSafe("ProjectId"))); }
public XmlNode GetData(OutputConfiguration configuration) { return(ServiceHandler.Instance.Client.GetProjectsRaw( ServiceHandler.Instance.SiteCode, ServiceHandler.Instance.ApiId, ServiceHandler.Instance.ApiPassword, configuration.GetIntegerSafe("ProjectId"), configuration.GetIntegerSafe("Status"), configuration.GetIntegerSafe("CustomerId"), configuration.GetIntegerSafe("ProjectManagerId"))); }
public XmlNode GetData(OutputConfiguration configuration) { return(ServiceHandler.Instance.Client.GetEmployeesRaw( ServiceHandler.Instance.SiteCode, ServiceHandler.Instance.ApiId, ServiceHandler.Instance.ApiPassword, configuration.GetIntegerSafe("EmployeeId"), configuration.GetStringSafe("Initials"), configuration.GetIntegerSafe("DepartmentID"), configuration.GetIntegerSafe("Status"))); }
public XmlNode GetData(OutputConfiguration configuration) { return ServiceHandler.Instance.Client.GetCustomersRaw( ServiceHandler.Instance.SiteCode, ServiceHandler.Instance.ApiId, ServiceHandler.Instance.ApiPassword, configuration.GetIntegerSafe("CustomerId"), configuration.GetIntegerSafe("CustomerStatusId"), configuration.GetIntegerSafe("AccountManagerId"), configuration.GetStringSafe("ForeignId")); }
public OutputConfiguration GetConfiguration(ExportFormat format) { var result = new OutputConfiguration(MethodBase.GetCurrentMethod().DeclaringType.Name) { ExportFormat = format, ListElementType = typeof(SubOpportunity).FullName }; result.InternalParameters.Add("OpportunityID", Opportunity.All); return(result); }
public XmlNode GetData(OutputConfiguration configuration) { return ServiceHandler.Instance.Client.GetProjectsRaw( ServiceHandler.Instance.SiteCode, ServiceHandler.Instance.ApiId, ServiceHandler.Instance.ApiPassword, configuration.GetIntegerSafe("ProjectId"), configuration.GetIntegerSafe("Status"), configuration.GetIntegerSafe("CustomerId"), configuration.GetIntegerSafe("ProjectManagerId") ); }
public static PesterConfiguration ShallowClone(PesterConfiguration configuration) { var cfg = Default; cfg.Run = RunConfiguration.ShallowClone(configuration.Run); cfg.Filter = FilterConfiguration.ShallowClone(configuration.Filter); cfg.CodeCoverage = CodeCoverageConfiguration.ShallowClone(configuration.CodeCoverage); cfg.TestResult = TestResultConfiguration.ShallowClone(configuration.TestResult); cfg.Should = ShouldConfiguration.ShallowClone(configuration.Should); cfg.Debug = DebugConfiguration.ShallowClone(configuration.Debug); cfg.Output = OutputConfiguration.ShallowClone(configuration.Output); return(cfg); }
public OutputConfiguration GetConfiguration(ExportFormat format) { var result = new OutputConfiguration(MethodBase.GetCurrentMethod().DeclaringType.Name) { ExportFormat = format }; result.InternalParameters.Add("ProjectId", Project.All); result.InternalParameters.Add("Status", TaskStatus.Active); result.InternalParameters.Add("TaskTypeId", TaskType.All); return(result); }
public PesterConfiguration(IDictionary configuration) { if (configuration != null) { Run = new RunConfiguration(configuration.GetIDictionaryOrNull("Run")); Filter = new FilterConfiguration(configuration.GetIDictionaryOrNull("Filter")); CodeCoverage = new CodeCoverageConfiguration(configuration.GetIDictionaryOrNull("CodeCoverage")); TestResult = new TestResultConfiguration(configuration.GetIDictionaryOrNull("TestResult")); Should = new ShouldConfiguration(configuration.GetIDictionaryOrNull("Should")); Debug = new DebugConfiguration(configuration.GetIDictionaryOrNull("Debug")); Output = new OutputConfiguration(configuration.GetIDictionaryOrNull("Output")); } }
private async Task ProcessOutputFilesAsync(OutputConfiguration configuration) { foreach (var outputConfiguration in configuration.OutputFiles) { try { await this.ProcessCodeGenerationAsync(outputConfiguration); } catch (Exception e) { this.LoggingService.Error($"Problems found in output configuration file [{outputConfiguration.Name}]':{Environment.NewLine}{e.Message}"); } } }
public void ShouldReadImageSection() { // Arrange var section = Substitute.For <IConfigurationSection>(); // Act var sut = new OutputConfiguration(section); var actual = sut.Image; // Assert section.Received(1).GetSection(ConfigurationKeys.ImageOutputSection); Assert.NotNull(actual); }
public override void CreateOutput(string fileName, DataTemplateComposite outputDataTemplateComposite, OutputConfiguration configuration) { fileName += ".csv"; using (var streamWriter = File.AppendText(fileName)) { var writer = new CsvWriter(streamWriter); writer.Configuration.Delimiter = ";"; WriteComponentToTheFile(writer, outputDataTemplateComposite); streamWriter.Close(); } Logger.Log(fileName + " output file created"); }
private async Task GenerateFinalSummaryAsync(string fileName, OutputConfiguration configuration) { try { this.LoggingService.Write($" - Generating Summary for [{Path.GetFileName(fileName)}]: "); await this.GenerateSummaryFileAsync(configuration.Summary, this.GenerationItems); this.LoggingService.WriteLine("Summary Generated."); } catch (Exception ex) { this.LoggingService.Error(ex.Message); } }
public XmlNode GetData(OutputConfiguration configuration) { return(ServiceHandler.Instance.Client.GetOpportunitiesRaw( ServiceHandler.Instance.SiteCode, ServiceHandler.Instance.ApiId, ServiceHandler.Instance.ApiPassword, configuration.GetIntegerSafe("OpportunityID"), configuration.GetIntegerSafe("CustomerID"), configuration.GetIntegerSafe("OwnerID"), configuration.GetIntegerSafe("OpportunityTypeID"), configuration.GetIntegerSafe("BarrierID"), configuration.GetDateTimeSafe("StartDate").ToString(), configuration.GetDateTimeSafe("EndDate").ToString())); }
public OutputConfiguration GetConfiguration(ExportFormat format) { var _result = new OutputConfiguration(MethodBase.GetCurrentMethod().DeclaringType?.Name) { ExportFormat = format, ListElementType = typeof(TimeOffRegistration).FullName }; _result.InternalParameters.Add("EmployeeId", Employee.All); _result.InternalParameters.Add("DepartmentId", Department.All); _result.InternalParameters.Add("FromDate", DateTime.Now.AddMonths(-3)); _result.InternalParameters.Add("ToDate", DateTime.Now); return(_result); }
public XmlNode GetData(OutputConfiguration configuration) { return(ServiceHandler.Instance.Client.GetWorkUnitsRaw( ServiceHandler.Instance.SiteCode, ServiceHandler.Instance.ApiId, ServiceHandler.Instance.ApiPassword, configuration.GetIntegerSafe("WorkUnitId"), configuration.GetIntegerSafe("EmployeeId"), configuration.GetIntegerSafe("AllocationId"), configuration.GetIntegerSafe("TaskId"), configuration.GetIntegerSafe("ProjectId"), configuration.GetIntegerSafe("DepartmentId"), configuration.GetDateTimeSafe("StartDate").ToString("yyyy-MM-dd"), configuration.GetDateTimeSafe("EndDate").ToString("yyyy-MM-dd"))); }
public OutputConfiguration GetConfiguration(ExportFormat format) { var result = new OutputConfiguration(MethodBase.GetCurrentMethod().DeclaringType.Name) { ExportFormat = format, ListElementType = typeof(Project).FullName }; result.InternalParameters.Add("ProjectId", Project.All); result.InternalParameters.Add("CustomerId", Customer.All); result.InternalParameters.Add("Status", ProjectStatus.All); result.InternalParameters.Add("ProjectManagerId", ProjectManager.All); return(result); }
public PesterConfiguration(IDictionary configuration) { if (configuration != null) { Run = new RunConfiguration(configuration.GetIDictionaryOrNull(nameof(Run))); Filter = new FilterConfiguration(configuration.GetIDictionaryOrNull(nameof(Filter))); CodeCoverage = new CodeCoverageConfiguration(configuration.GetIDictionaryOrNull(nameof(CodeCoverage))); TestResult = new TestResultConfiguration(configuration.GetIDictionaryOrNull(nameof(TestResult))); Should = new ShouldConfiguration(configuration.GetIDictionaryOrNull(nameof(Should))); Debug = new DebugConfiguration(configuration.GetIDictionaryOrNull(nameof(Debug))); Output = new OutputConfiguration(configuration.GetIDictionaryOrNull(nameof(Output))); TestDrive = new TestDriveConfiguration(configuration.GetIDictionaryOrNull(nameof(TestDrive))); TestRegistry = new TestRegistryConfiguration(configuration.GetIDictionaryOrNull(nameof(TestRegistry))); } }
public OutputConfiguration GetConfiguration(ExportFormat format) { var result = new OutputConfiguration(MethodBase.GetCurrentMethod().DeclaringType.Name) { ExportFormat = format, ListElementType = typeof(Customer).FullName }; result.InternalParameters.Add("CustomerId", Customer.All); result.InternalParameters.Add("CustomerStatusId", CustomerStatus.All); result.InternalParameters.Add("AccountManagerId", AccountManager.All); result.InternalParameters.Add("ForeignId", string.Empty); return(result); }
public OutputConfiguration GetConfiguration(ExportFormat format) { var result = new OutputConfiguration(MethodBase.GetCurrentMethod().DeclaringType.Name) { ExportFormat = format, ListElementType = typeof(Allocation).FullName }; result.InternalParameters.Add("AllocationId", Allocation.All); result.InternalParameters.Add("TaskId", Task.All); result.InternalParameters.Add("EmployeeId", Employee.All); result.InternalParameters.Add("ProjectId", Project.All); return(result); }
public OutputConfiguration GetConfiguration(ExportFormat format) { var _result = new OutputConfiguration(MethodBase.GetCurrentMethod().DeclaringType?.Name) { ExportFormat = format, ListElementType = typeof(Employee).FullName }; _result.InternalParameters.Add("EmployeeId", Employee.All); _result.InternalParameters.Add("Initials", string.Empty); _result.InternalParameters.Add("DepartmentID", Department.All); _result.InternalParameters.Add("Status", EmployeeStatus.All.ToString("D")); return(_result); }
public override unsafe void Initialize(Size data, IOutputOwner output) { _device = GraphicsDevice.Create(FeatureLevel.GraphicsLevel11_0, null); var desc = new OutputConfiguration { BackBufferFormat = BackBufferFormat.R16G16B16A16Single, BackBufferCount = 3, SyncInterval = 0 }; _output = Output.Create(desc, _device, output); _renderer.Init(_device, data); }
public void ShouldCorrectSeed() { // Arrange var section = Substitute.For <IConfigurationSection>(); section[ConfigurationKeys.Output.Seed].Returns("123"); var sut = new OutputConfiguration(section); // Act var actual = sut.Seed; // Assert Assert.Equal(123, actual); }
public async Task GenerateAsync(string fileName, OutputConfiguration configuration) { this.LoggingService.Notice("Beginning Code Generation..."); this.SourcePath = Path.GetDirectoryName(fileName); this.LoadNativeTranslators(configuration); this.LoadTemplates(configuration); await this.ProcessOutputFilesAsync(configuration); if (configuration.Summary == null) { return; } await this.GenerateFinalSummaryAsync(fileName, configuration); }
public void ShouldHaveCorrectTargetPath() { // Arrange var section = Substitute.For <IConfigurationSection>(); const string expected = "the target"; section[ConfigurationKeys.Output.TargetPath].Returns(expected); var sut = new OutputConfiguration(section); // Act var actual = sut.TargetPath; // Assert Assert.Equal(expected, actual); }
public OutputConfiguration GetConfiguration(ExportFormat format) { var result = new OutputConfiguration(MethodBase.GetCurrentMethod().DeclaringType.Name) { ExportFormat = format, ListElementType = typeof(Opportunity).FullName }; result.InternalParameters.Add("OpportunityID ", Opportunity.All); result.InternalParameters.Add("CustomerID", Customer.All); result.InternalParameters.Add("OwnerID", Employee.All); result.InternalParameters.Add("OpportunityTypeID", OpportunityType.All); result.InternalParameters.Add("BarrierID", Barrier.All); result.InternalParameters.Add("StartDate", new DateTime(DateTime.Now.Year, 1, 1)); result.InternalParameters.Add("EndDate", new DateTime(DateTime.Now.Year, 12, 31)); return(result); }
public OutputConfiguration GetConfiguration(ExportFormat format) { var _result = new OutputConfiguration(MethodBase.GetCurrentMethod().DeclaringType?.Name) { ExportFormat = format, ListElementType = typeof(WorkUnit).FullName }; _result.InternalParameters.Add("WorkUnitId", WorkUnit.All); _result.InternalParameters.Add("EmployeeId", Employee.All); _result.InternalParameters.Add("AllocationId", Allocation.All); _result.InternalParameters.Add("TaskId", Task.All); _result.InternalParameters.Add("ProjectId", Project.All); _result.InternalParameters.Add("DepartmentId", Department.All); _result.InternalParameters.Add("StartDate", DateTime.Now.AddMonths(-3)); _result.InternalParameters.Add("EndDate", DateTime.Now); return(_result); }
private static void WriteElement(XmlWriter writer, DataTemplateComponent component, OutputConfiguration configuration) { if (component.Component == null) { writer.WriteElementString("Position", "n/a"); writer.WriteElementString("Name", component.Name); writer.WriteElementString("Type", "n/a"); writer.WriteElementString("Value", "n/a"); return; } switch (configuration) { case OutputConfiguration.Composite: writer.WriteElementString("Position", component.Component.Pos.ToString(CultureInfo.InvariantCulture)); writer.WriteElementString("Name", component.Component.Name); writer.WriteElementString("Type", component.Component.TypeOfVariable.ToString()); writer.WriteElementString("Value", CleanInvalidXmlChars(component.Component.StringValue()).Trim()); break; case OutputConfiguration.Template: writer.WriteAttributeString("Name", component.Component.Name); writer.WriteAttributeString("Reference", ""); var id = 0; var parent = component.Component.GetOwner() as CommunicationInterfaceHandler; if (parent != null) id = (int) parent.Header.Id; writer.WriteAttributeString("InterfaceId", id.ToString(CultureInfo.InvariantCulture)); writer.WriteAttributeString("InterfaceType", component.Component.TypeOfInterface.ToString()); break; } }
private void Form1_Load(object sender, EventArgs e) { // set version this.Text = String.Format("FEZ Touch Font Generator ver {0}", ApplicationVersion); // set input box this.txtInputText.Text = Properties.Settings.Default.InputText; // load font this.fontDlgInputFont.Font = Properties.Settings.Default.InputFont; this.UpdateSelectedFont(); // load configurations from file this.outputConfigurationManager.loadFromFile(Properties.Resources.ConfigFileName); // update the dropdown this.outputConfigurationManager.comboboxPopulate(this.outputConfiguration); // get saved output config index int lastUsedOutputConfigurationIndex = Properties.Settings.Default.OutputConfigIndex; // load recently used preset if (lastUsedOutputConfigurationIndex >= 0 && lastUsedOutputConfigurationIndex < this.outputConfiguration.Items.Count) { // last used this.outputConfiguration.SelectedIndex = lastUsedOutputConfigurationIndex; // load selected configuration this.outputConfig = this.outputConfigurationManager.configurationGetAtIndex(lastUsedOutputConfigurationIndex); } else { // there's no saved configuration. get the working copy (default) this.outputConfig = this.outputConfigurationManager.workingOutputConfiguration; } // set checkbox stuff this.PopulateTextInsertCheckbox(); // apply font to all appropriate places this.UpdateSelectedFont(); }
private void btnOutputConfig_Click(object sender, EventArgs e) { // no focus this.label1.Focus(); // get it OutputConfigurationForm outputConfigForm = new OutputConfigurationForm(ref this.outputConfigurationManager); // get the oc int selectedConfigurationIndex = outputConfigForm.getOutputConfiguration(this.outputConfiguration.SelectedIndex); // update the dropdown this.outputConfigurationManager.comboboxPopulate(this.outputConfiguration); // get working configuration this.outputConfig = this.outputConfigurationManager.workingOutputConfiguration; // set selected index this.outputConfiguration.SelectedIndex = selectedConfigurationIndex; }
protected void lblOutput_MouseClick(object sender, MouseEventArgs e) { int ch_num = int.Parse(((Label)sender).Name.Substring(5, 1)); OutputConfig cached_output = (OutputConfig)PROGRAMS[CURRENT_PROGRAM].outputs[ch_num - 1].Clone(); if (e.Button == MouseButtons.Right) { temp_from_ch = ch_num; temp_from_index = 0; temp_from_preset = CURRENT_PROGRAM; TempConfig = cached_output; ShowCopyMenu(sender); return; } using (OutputConfiguration outputForm = new OutputConfiguration(this, ch_num)) { DialogResult showBlock = outputForm.ShowDialog(this); if (showBlock == DialogResult.Cancel) { if (!PROGRAMS[CURRENT_PROGRAM].outputs[ch_num - 1].Equals(cached_output)) { PROGRAMS[CURRENT_PROGRAM].outputs[ch_num - 1] = (OutputConfig)cached_output.Clone(); if (LIVE_MODE) { AddItemToQueue(new LiveQueueItem(ch_num + GetNumInputChannels(), PROGRAMS[CURRENT_PROGRAM].outputs[ch_num - 1].Name)); } } } else { if (!PROGRAMS[CURRENT_PROGRAM].outputs[ch_num - 1].Equals(cached_output)) { if (LIVE_MODE) { AddItemToQueue(new LiveQueueItem(ch_num + GetNumInputChannels(), PROGRAMS[CURRENT_PROGRAM].outputs[ch_num - 1].Name)); } } UpdateTooltips(); } } }
public abstract void CreateOutput(string fileName, DataTemplateComposite outputDataTemplateComposite, OutputConfiguration configuration);
private void WriteComponentToTheFile(XmlWriter writer, DataTemplateComposite outputDataTemplateComposite, OutputConfiguration configuration) { foreach (var component in outputDataTemplateComposite.Cast<DataTemplateComponent>()) { writer.WriteStartElement(CleanInvalidXmlChars(component.Name)); if (component.GetType() == typeof(DataTemplateComposite)) { WriteComponentToTheFile(writer, component as DataTemplateComposite, configuration); } else { WriteElement(writer, component, configuration); } writer.WriteEndElement(); } }
public override void CreateOutput(string fileName, DataTemplateComposite outputDataTemplateComposite, OutputConfiguration configuration) { var settings = new XmlWriterSettings { Indent = true, IndentChars = "\t" }; fileName += ".xml"; using (var writer = XmlWriter.Create(fileName, settings)) { writer.WriteStartDocument(); writer.WriteStartElement(configuration.ToString()); WriteComponentToTheFile(writer, outputDataTemplateComposite, configuration); writer.WriteEndElement(); writer.WriteEndDocument(); } Logger.Log(fileName + " output file created"); }
private void outputConfiguration_SelectedIndexChanged(object sender, EventArgs e) { // check if any configuration selected if (this.outputConfiguration.SelectedIndex != -1) { // get the configuration this.outputConfig = this.outputConfigurationManager.configurationGetAtIndex(this.outputConfiguration.SelectedIndex); } // save selected index for next time Properties.Settings.Default.OutputConfigIndex = this.outputConfiguration.SelectedIndex; // save Properties.Settings.Default.Save(); }
public OutputConfiguration GetConfiguration() { var result = new OutputConfiguration(MethodBase.GetCurrentMethod().DeclaringType.Name); return result; }