/// <summary> /// Construtor para habilitar os recursos de choose em um cenário /// </summary> /// <param name="ptxtId">EditText do ID</param> /// <param name="ptxtDescription">EditText do Description</param> /// <param name="pQuery">Query que será executada</param> /// <param name="pFieldId">Nome Campo do ID</param> /// <param name="pFieldName">Nome do Campo do Description</param> /// <param name="pWindowText">Nome da Janela quando pesquisa</param> public ChooseFromListHelper( EditText ptxtId, EditTextButton ptxtDescription, TableQuery pQuery, string pFieldId, string pFieldName, string pWindowText) : this() { FieldNameId = pFieldId; FieldNameDescription = pFieldName; WindowText = pWindowText; Query = pQuery; _ownerForm = ptxtId.FindForm() as Form; _txtId = ptxtId; _txtDescription = ptxtDescription; HandleEditEvents(); }
/// <summary> /// /// </summary> /// <param name="ptxtId"></param> /// <param name="ptxtDescription"></param> /// <param name="pFormatConditions"></param> /// <param name="pQuery"></param> /// <param name="pFieldId"></param> /// <param name="pFieldName"></param> /// <param name="pWindowText"></param> public ChooseFromListHelper( EditText ptxtId, EditTextButton ptxtDescription, List <FormatConditionChoose> pFormatConditions, TableQuery pQuery, string pFieldId, string pFieldName, string pWindowText, params KeyValuePair <string, Dictionary <object, string> >[] pColumnsParamns ) : this() { FieldNameId = pFieldId; FieldNameDescription = pFieldName; WindowText = pWindowText; Query = pQuery; _formatConditions = pFormatConditions; _columnsParamns = pColumnsParamns; _txtId = ptxtId; _txtDescription = ptxtDescription; _ownerForm = ptxtId.FindForm() as Form; HandleEditEvents(); }