示例#1
0
 // private ScatterView container;
 public PreviewWindow(Main _main)
 {
     InitializeComponent();
     main = _main;
     provider = new SurfaceTwoTouchInputProvider(this);
     GestureFramework.Initialize(provider, this.previewRoot, Assembly.GetExecutingAssembly());
     GestureFramework.EventManager.MultiTouchChanged += new TouchInputProvider.MultiTouchChangeEventHandler(EventManager_MultiTouchChanged);
 }
示例#2
0
 public IGT(Window handler, Canvas mainCanvas, ScatterView container)
 {
     provider = new SurfaceTwoTouchInputProvider(handler);
     GestureFramework.Initialize(provider, this.LayoutRoot, Assembly.GetExecutingAssembly());
     GestureFramework.EventManager.MultiTouchChanged += new TouchInputProvider.MultiTouchChangeEventHandler(EventManager_MultiTouchChanged);
     loadIGT(provider);
     Container = container;
 }
示例#3
0
 public IGT(Window handler)
 {
     provider = new SurfaceTwoTouchInputProvider(handler);
     GestureFramework.Initialize(provider, this.LayoutRoot, Assembly.GetExecutingAssembly());
     GestureFramework.EventManager.MultiTouchChanged += new TouchInputProvider.MultiTouchChangeEventHandler(EventManager_MultiTouchChanged);
     loadIGT(provider);
     LayoutRoot.Children.Add(options);
     LayoutRoot.Children.Add(rules);
 }
示例#4
0
        private void CloseButton_Click(object sender, RoutedEventArgs e)
        {
            foreach (ASGPage previewPage in main.ActiveSessionManager.CurrentProject.PageDictionary.Values)
            {

                foreach (var item in previewPage.PrototypeElementDictionary.Values)
                {
                    ScatterViewItem svi = new ScatterViewItem();
                    svi.Width = item.Width;
                    svi.Height = item.Height;
                    svi.Tag = item;
                    foreach (var gesture in item.GestureTargetPageMap)
                    {
                        DetachEvent(gesture, svi);
                    }
                }
            }
            provider = null;
            GestureFramework.EventManager.MultiTouchChanged -= new TouchInputProvider.MultiTouchChangeEventHandler(EventManager_MultiTouchChanged);
            Application.Current.Windows[1].Close();
        }
示例#5
0
 private void loadIGT(SurfaceTwoTouchInputProvider _provider)
 {
     InitializeComponent();
     this.provider = _provider;
     this.Loaded += new RoutedEventHandler(IGT_Loaded);
     options = new IGTOptions();
     rules = new IGTRules(this);
 }