Пример #1
0
 public override void CreateDevices()
 {
     {
         VisualDevice visual = new VisualDevice(0);
         visual.Normal = Vector3.Backward;      // up
         visual.Arc    = MathHelper.Pi * 1.96f; // 300, small cone downward that it can't see
         AddDevice(visual);
     }
 }
Пример #2
0
 public override void CreateDevices()
 {
     // one eye
     {
         VisualDevice visual = new VisualDevice(0);
         visual.Normal = Vector3.Right; // front
         visual.Arc    = 3.4906f;       // MathHelper.Pi * 1.11f; // 200
         AddDevice(visual);
     }
 }
        public static void ShowForDevice(VisualDevice device)
        {
            var timer = new Timer
            {
                Interval = 3 * 1000
            };
            var form = new PlaybackChangedForm(device);

            timer.Tick += (sender, args) =>
            {
                form.Close();
                timer.Stop();
                timer.Dispose();
            };

            form.Show();
            timer.Start();
        }