Exemple #1
0
    public bool Define(Context in_ctxt)
    {
        try
        {
            CustomProperty oCustomProperty = (CustomProperty)in_ctxt.Source;
            oCustomProperty.AddParameter2("Address", siVariantType.siString, sIBL_GUI_XSI_Server_Globals.Address, null, null, null, null, siParamClassification.siClassifUnknown, (int)(siCapabilities.siPersistable | siCapabilities.siReadOnly), null, null, null);
            oCustomProperty.AddParameter2("Port", siVariantType.siInt4, sIBL_GUI_XSI_Server_Globals.Port, 10000, 65536, 10000, 65536, siParamClassification.siClassifUnknown, (int)siCapabilities.siPersistable, null, null, null);
            oCustomProperty.AddParameter2("MaxCnx", siVariantType.siInt4, sIBL_GUI_XSI_Server_Globals.MaxCnx, 1, 20, 1, 20, siParamClassification.siClassifUnknown, (int)siCapabilities.siPersistable, null, null, null);
            oCustomProperty.AddParameter2("ProcessReqTimer", siVariantType.siInt4, 500, 100, 10000, 100, 10000, siParamClassification.siClassifUnknown, (int)siCapabilities.siPersistable, null, null, null);
            oCustomProperty.AddParameter2("EnableRequests", siVariantType.siBool, true, null, null, null, null, siParamClassification.siClassifUnknown, (int)siCapabilities.siPersistable, null, null, null);
        }
        catch (Exception e)
        {
            Error(e.ToString());
        }

        return(true);
    }