コード例 #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";
        }
コード例 #2
0
ファイル: BodyModule.cs プロジェクト: eliaseliasyashar/imBMW
        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);
        }
コード例 #3
0
ファイル: EnumConverter.cs プロジェクト: tevfikoguz/imBMW
        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() + ")");
        }
コード例 #4
0
ファイル: BodyModule.cs プロジェクト: eliaseliasyashar/imBMW
 public RemoteKeyEventArgs(RemoteKeyButton button)
 {
     Button = button;
 }
コード例 #5
0
ファイル: BodyModule.cs プロジェクト: temur03/imBMW
 public RemoteKeyEventArgs(RemoteKeyButton button)
 {
     Button = button;
 }
コード例 #6
0
ファイル: BodyModule.cs プロジェクト: temur03/imBMW
 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);
 }