예제 #1
0
파일: FirstAction.cs 프로젝트: fangfs/EPLAN
        /// <summary>
        /// Documentation function for the Action; is called of the system as required
        /// Bescheibungstext delivers for the Action itself and if the Action String-parameters ("Kommandozeile")
        /// also name and description of the single parameters evaluates
        /// </summary>
        /// <param name="actionProperties"> This object must be filled with the information of the Action.</param>
        public void GetActionProperties(ref ActionProperties actionProperties)
        {
            // Description 1st parameter
            ActionParameterProperties firstParam = new ActionParameterProperties();

            firstParam.Set("1. Parameter for FirstAction");
            actionProperties.AddParameter(firstParam);

            // Description 2nd parameter
            ActionParameterProperties secondParam = new ActionParameterProperties();

            secondParam.Set("2. Parameter for FirstAction");
            actionProperties.AddParameter(secondParam);
        }
        public void GetActionProperties(ref ActionProperties actionProperties)
        {
            actionProperties.Description = "Löscht alle EEC Platzhalter";
            ActionParameterProperties recordName = new ActionParameterProperties();

            recordName.Set("recordname");
            actionProperties.AddParameter(recordName);
        }