public void SubscribeBrightnessNotification()
        {
            var mmiWrapper = new MMIWrapper();
            var brightnessChangedNotify = mmiWrapper.SubscribeBrightnessEvent();

            brightnessChangedNotify.BrightnessChangedEvent += BrightnessChangedNotify_BrightnessChangedEvent;
            Console.WriteLine("SubscribeBrightnessNotification");
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            var stopWatcher = new Stopwatch();

            stopWatcher.Start();

            var mmiWarpper = new MMIWrapper();

            mmiWarpper.GetAssetTagAndExpressServiceCode();
            mmiWarpper.GetBIOSVersion();
            mmiWarpper.GetSystemModel();
            mmiWarpper.GetPortNameAndFriednlyName();
            mmiWarpper.GetOsVersion();
            mmiWarpper.SubscribeTouchScreenEvent();
            mmiWarpper.SubscribeBIOSEvent();
            mmiWarpper.SubscribeBrightnessEvent();

            stopWatcher.Stop();
            Console.WriteLine(stopWatcher.Elapsed);
            Console.ReadKey();
        }