Example #1
0
        public SaveDialog(SessionManager _sessionManager, Main _instance)
        {
            InitializeComponent();

            sessionManager = _sessionManager;
            instance = _instance;
        }
Example #2
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);
 }
Example #3
0
        public MainWindow()
        {
            InitializeComponent();

            mainCanvasRoot.Height =  System.Windows.SystemParameters.PrimaryScreenHeight;
            mainCanvasRoot.Width =  System.Windows.SystemParameters.PrimaryScreenWidth;
            Main asg = new Main(this, mainCanvasRoot);

            asg.Height = mainCanvasRoot.Height;
            asg.Width = mainCanvasRoot.Width;

            mainCanvasRoot.Children.Add(asg);
        }
Example #4
0
        //"*.asgproj"
        public LoadDialog(SessionManager _sessionManager, Main _instance,List<string> _filter, LoadDialogType _type, ScatterViewItem svi = null)
        {
            InitializeComponent();
            sessionManager = _sessionManager;
            instance = _instance;
            type = _type;
            DirectoryInfo di = null;
            switch (type)
            {

                case LoadDialogType.Project:
                     di = new DirectoryInfo(EnvironmentFolder.getProjectsFolder());
                    LoadButton.Click += LoadProjectButton_Click;
                    Title.Content = "LOAD PROJECT";
                    break;
                case LoadDialogType.BackgroundImage:
                    di = new DirectoryInfo(EnvironmentFolder.getImagesFolder());
                    LoadButton.Click += LoadImageButton_Click;
                    Title.Content = "BACKGROUND IMAGE";
                    break;
                case LoadDialogType.GestureAreaImage:
                    di = new DirectoryInfo(EnvironmentFolder.getImagesFolder());
                    Svi = svi;
                    LoadButton.Click += LoadImageGestureAreaButton_Click;
                    Title.Content = "GESTURE AREA IMAGE";
                    break;
            }

            ProjectList.Items.Clear();
            foreach (string s in _filter)
            {
                FileInfo[] rgFiles = di.GetFiles(s);

                foreach (FileInfo fi in rgFiles)
                {
                    ProjectList.Items.Add(fi.Name);
                }
            }
        }
Example #5
0
 public Thumbnails(Main _main)
 {
     main = _main;
     InitializeComponent();
 }
Example #6
0
 public EventsGesture( Main _asg)
 {
     InitializeComponent();
     asg = _asg;
 }