Exemple #1
0
        public static bool deleteMac(string mac)
        {
            bool flg = true;

            try
            {
                if (StaticClass.ServerConet)
                {
                    try
                    {
                        var request = new NetworkModuleDeleteByMacRequest()
                        {
                            Mac = mac
                        };
                        var response = jc_MacService.DeleteNetworkModule(request);
                        flg = true;
                    }
                    catch (Exception ex)
                    {
                        XtraMessageBox.Show(ex.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                        flg = false;
                    }
                }
            }
            catch
            {
                OprFuction.SetServerConct();
            }
            return(flg);
        }
Exemple #2
0
 public BasicResponse DeleteNetworkModule(Sys.Safety.Request.NetworkModule.NetworkModuleDeleteByMacRequest NetworkModuleRequest)
 {
     return(_NetworkModuleService.DeleteNetworkModule(NetworkModuleRequest));
 }