| | |
| | | } |
| | | } |
| | | } catch (Exception ex) { |
| | | Console.WriteLine ("arHistory" + ex.ToString ()); |
| | | Utlis.WriteLine ("arHistory" + ex.ToString ()); |
| | | } finally { |
| | | Application.RunOnMainThread (() => { |
| | | MainPage.Loading.Hide (); |
| | |
| | | byResult = Control.ControlBytesSendHasReturn (Command.SetSecurityByPass, sm.SubnetID, sm.DeviceID, new byte [] { dr.AreaNumber, dr.LoopID, dr.ByPass }); |
| | | } |
| | | } catch (Exception ex) { |
| | | Console.WriteLine ("Bypass " + ex.ToString ()); |
| | | Utlis.WriteLine ("Bypass " + ex.ToString ()); |
| | | } finally { |
| | | Application.RunOnMainThread (() => { |
| | | if (byResult == null) { |
| | |
| | | }); |
| | | } |
| | | } catch (Exception ex) { |
| | | Console.WriteLine ("ShowDry" + ex.ToString ()); |
| | | Utlis.WriteLine ("ShowDry" + ex.ToString ()); |
| | | } finally { |
| | | Application.RunOnMainThread (() => { |
| | | MainPage.Loading.Hide (); |