示例#1
0
 /// <summary>Gets the <see cref="UseDataAdvice"/> flag from the config file.
 /// </summary>
 /// <returns>The <see cref="UseDataAdvice"/> flag with respect to the config file or some standard value.</returns>
 internal static DropDownListCreationType GetUseDataAdviceFromConfigFile()
 {
     if (ExcelAddIn.Configuration.GeneralSettings.TryGetEnumValue(m_UseDataAdviceConfigKey, out sm_UseDataAdvice) == false)
     {
         sm_UseDataAdvice = DropDownListCreationType.EmptyExcelCells;
     }
     return(sm_UseDataAdvice);
 }
示例#2
0
 /// <summary>Sets the <see cref="UseDataAdvice"/> flag and write the flag into the config file.
 /// </summary>
 /// <param name="state">The <see cref="DropDownListCreationType"/> object to set the <see cref="UseDataAdvice"/> flag.</param>
 internal static void StoreUseDataAdvice(DropDownListCreationType state)
 {
     ExcelAddIn.Configuration.GeneralSettings.SetValue(m_UseDataAdviceConfigKey, state);
     sm_UseDataAdvice = state;
 }