Example #1
0
        static void OnRemoteKeyButton(Message m, RemoteKeyButton button)
        {
            var e = RemoteKeyButtonPressed;

            if (e != null)
            {
                e(new RemoteKeyEventArgs(button));
            }
            m.ReceiverDescription = "Remote key: '" + button.ToStringValue() + "' was pressed";
        }
Example #2
0
        static void OnRemoteKeyButton(Message m, RemoteKeyButton button)
        {
            var e = RemoteKeyButtonPressed;

            if (e != null)
            {
                e(new RemoteKeyEventArgs(button));
            }
            m.ReceiverDescription = "Remote key press " + button.ToStringValue() + " button";
            Logger.Info(m.ReceiverDescription);
        }
Example #3
0
        public static string ToStringValue(this RemoteKeyButton e)
        {
            switch (e)
            {
            case RemoteKeyButton.Lock: return("Lock");

            case RemoteKeyButton.Trunk: return("Trunk");

            case RemoteKeyButton.Unlock: return("Unlock");
            }
            return("NotSpecified(" + e.ToString() + ")");
        }
Example #4
0
 public RemoteKeyEventArgs(RemoteKeyButton button)
 {
     Button = button;
 }
Example #5
0
 public RemoteKeyEventArgs(RemoteKeyButton button)
 {
     Button = button;
 }
Example #6
0
 static void OnRemoteKeyButton(Message m, RemoteKeyButton button)
 {
     var e = RemoteKeyButtonPressed;
     if (e != null)
     {
         e(new RemoteKeyEventArgs(button));
     }
     m.ReceiverDescription = "Remote key press " + button.ToStringValue() + " button";
     Logger.Info(m.ReceiverDescription);
 }