private void LoadOptions(FormFieldInfo ffi) { bool showOptions = FormHelper.HasListControl(ffi); plcOptions.Visible = showOptions; plcDefaultValue.Visible = !showOptions; if (showOptions) { // Query means that options contains sql select statement bool isSqlQuery = ffi.Settings.Contains("Query"); bool isMacro = ffi.SettingIsMacro("Options"); optionsDesigner.Visible = !isMacro && !isSqlQuery; if (isMacro) { mphOptions.ShowInformation(GetString("FormBuilder.PropertyIsMacro")); } else if (isSqlQuery) { mphOptions.ShowInformation(GetString("FormBuilder.PropertyIsNotOption")); } else { optionsDesigner.OptionsDefinition = ValidationHelper.GetString(ffi.Settings["Options"], string.Empty); } } }