コード例 #1
0
        public MainWindow()
        {
            InitializeComponent();

            MultitouchScreen.AllowNonContactEvents = true;

            spaceProvider = new InteractiveSpaceProviderDLL();
            spaceProvider.Connect();

            nodes = new ArrayList(5);

            editWindow = new EditWindow();

            //Uncomment this line to enable raw video streaming.
            /*
            spaceProvider.CreateRawVideoStreaming();
            */

            //Uncomment these lines to draw fingers on the projected screen
            //*
            spaceProvider.CreateFingerTracker();
            vizLayer.SpaceProvider = spaceProvider;
            //*/
            signal = new TextBlock();
            signal.FontSize = 50;
            signal.Text = "0";
            signal.Height = 80;
            signal.MaxWidth = 80;
            signal.Foreground = Brushes.White;
            signal.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
            signal.VerticalAlignment = System.Windows.VerticalAlignment.Top;
            signal.Margin = new Thickness(0, 0, 0, 0);
               // mainGrid.Children.Add(signal);
        }
コード例 #2
0
 /// <summary>
 /// When we select the edit option, this makes the current edit window into a new one
 /// </summary>
 /// <param name="node"></param>
 public void editNode(Node node)
 {
     //1. Destroy the previous one.
     this.editWindow.Hide();
     this.editWindow = null;
     //2. Create a new one with this node.
     this.editWindow = new EditWindow(node.data.name, node);
     this.editWindow.Show();
 }