Пример #1
0
 /// <summary>
 /// Set up the parameter preview
 /// </summary>
 /// <param name="lLoginID">Equipment user Login ID: CLIENT Login return values</param>
 /// <param name="netConfig">preview parameter</param>
 /// <param name="waittime">waittime</param>
 /// <returns>true:succeed;false:fail</returns>
 public static bool NETSetDevConfig(int lLoginID,NETDEV_PREVIEW_CFG previewConfig, int waittime)
 {
     bool returnValue = false;
     returnValue = PSetDevConfig(lLoginID, -1, CONFIG_COMMAND.NET_DEV_PREVIEWCFG, (object)previewConfig, typeof(NETDEV_PREVIEW_CFG), waittime);
     return returnValue;
 }
Пример #2
0
 /// <summary>
 /// Set the preview parameters [the default wait time 3000]
 /// </summary>
 /// <param name="lLoginID">Equipment user Login ID: CLIENT Login return values</param>
 /// <param name="netConfig">preview parameter</param>
 /// <returns>true:succeed;false:fail</returns>
 public static bool NETSetDevConfig(int lLoginID,NETDEV_PREVIEW_CFG previewConfig)
 {
     return NETSetDevConfig(lLoginID,previewConfig, 3000);
 }
Пример #3
0
 /// <summary>
 ///  Equipment user Login ID: CLIENT Login return values
 /// </summary>
 /// <param name="lLoginID">Equipment user Login ID: CLIENT Login return values</param>
 /// <param name="netConfig">Preview the parameters</param>
 /// <param name="waittime">waittime</param>
 /// <returns>true:succeed;false:fail</returns>
 public static bool NETGetDevConfig(int lLoginID, ref NETDEV_PREVIEW_CFG previewConfig, int waittime)
 {
     object result = new object();
     bool returnValue = false;
     returnValue = PGetDevConfig(lLoginID, -1, CONFIG_COMMAND.NET_DEV_PREVIEWCFG, ref result, typeof(NETDEV_PREVIEW_CFG), waittime);
     previewConfig = (NETDEV_PREVIEW_CFG)result;
     return returnValue;
 }