public FieldPlanDocument(FieldDocument BaseDocument) { m_title = System.IO.Path.GetFileNameWithoutExtension(BaseDocument.path); BaseDoc = BaseDocument; m_use_template = Properties.Settings.Default.UseTemplate; m_template_length = Properties.Settings.Default.TemplateLength; m_hide_text = Properties.Settings.Default.FieldPlanHideText; m_summary_selection = (SummaryEnum)Enum.Parse(typeof(SummaryEnum), Properties.Settings.Default.FieldPlanPropertyMode); m_text_format = Properties.Settings.Default.FieldPlanFormatString; m_text_regex = Properties.Settings.Default.FieldPlanRegex; m_fore_color_mode = (ColorMode)Enum.Parse(typeof(ColorMode), Properties.Settings.Default.FieldPlanForeColorMode); m_back_color_mode = (ColorMode)Enum.Parse(typeof(ColorMode), Properties.Settings.Default.FieldPlanBackColorMode); m_build_reverse = false; TempHTML = GenerateHTMLFieldPlan(CalculateFieldplan()); m_fixed_fore_color = SDtoSM(Properties.Settings.Default.FieldPlanFixedForeColor); m_fixed_back_color = SDtoSM(Properties.Settings.Default.FieldPlanFixedBackColor); }
/// <summary> /// Initializes a new instance of the <see cref="ApplicationApiHealth" /> class. /// </summary> /// <param name="summary">One-word summary of the health of the API connection of an application (required).</param> /// <param name="lastUsed">time of last request relevant to the API health test (required).</param> public ApplicationApiHealth(SummaryEnum summary = default(SummaryEnum), DateTime lastUsed = default(DateTime)) { // to ensure "summary" is required (not null) if (summary == null) { throw new InvalidDataException("summary is a required property for ApplicationApiHealth and cannot be null"); } else { this.Summary = summary; } // to ensure "lastUsed" is required (not null) if (lastUsed == null) { throw new InvalidDataException("lastUsed is a required property for ApplicationApiHealth and cannot be null"); } else { this.LastUsed = lastUsed; } }