//////////////////////////////////////////////////////////////////////////////////////////////////// /// \fn public static ElementWindowPrms MethodComboBoxPrms(Attribute attribute, dynamic key, NetworkElement mainNetworkElement, NetworkElement.ElementDictionaries mainDictionary, NetworkElement.ElementDictionaries dictionary, InputWindows inputWindow, bool windowEditable) /// /// \brief Method combo box prms. /// /// \par Description. /// - This method is used to set the parameters for a method field in the GUI /// - The purpose of this method is to set the options for the ComboBox as all the /// messages which has the delegate signature /// /// \par Algorithm. /// /// \par Usage Notes. /// /// \author Ilanh /// \date 09/05/2018 /// /// \param attribute (Attribute) - The attribute. /// \param key (dynamic) - The key. /// \param mainNetworkElement (NetworkElement) - The main network element. /// \param mainDictionary (ElementDictionaries) - Dictionary of mains. /// \param dictionary (ElementDictionaries) - The dictionary. /// \param inputWindow (InputWindows) - The input window. /// \param windowEditable (bool) - true if window editable. /// /// \return The ElementWindowPrms. //////////////////////////////////////////////////////////////////////////////////////////////////// public static ElementWindowPrms MethodComboBoxPrms(Attribute attribute, dynamic key, NetworkElement mainNetworkElement, NetworkElement.ElementDictionaries mainDictionary, NetworkElement.ElementDictionaries dictionary, InputWindows inputWindow, bool windowEditable) { ElementWindowPrms elementWindowPrms = new ElementWindowPrms(); elementWindowPrms.newValueControlPrms.inputFieldType = InputFieldsType.ComboBox; string[] options = TypesUtility.GetInternalEventMethods().ToArray(); elementWindowPrms.newValueControlPrms.options = options; elementWindowPrms.newValueControlPrms.Value = options[0]; return(elementWindowPrms); }