예제 #1
0
        void MainPage_Loaded(object sender, RoutedEventArgs e)
        {
            _compass = Compass.GetDefault();
            if (_compass == null)
            {
                HelpShow.Show("亲,您的手机不支持指南针!");
                return;
            }
            uint v        = _compass.MinimumReportInterval;
            uint Interval = 20;

            _compass.ReportInterval  = (Interval <= v) ? v : Interval;
            _compass.ReadingChanged += _compass_ReadingChanged;
            rotatTransform           = new RotateTransform();
            ge.RenderTransform       = rotatTransform;
        }
예제 #2
0
 private static void Msg(string msg)
 {
     HelpShow.Show(msg);
 }