protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            // Catalog all exported parts within this assembly
            this.catalog = new AssemblyCatalog(typeof(App).Assembly);
            this.compositionContainer = new CompositionContainer(this.catalog);

            Window window = new MainWindow(this.compositionContainer.GetExportedValue<KinectController>());
            window.Show();
        }
예제 #2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            Result=new ResultModel();

            //MessageBox.Show(SystemParameters.PrimaryScreenHeight.ToString());
            //MessageBox.Show(SystemParameters.PrimaryScreenWidth.ToString());

            //MessageBox.Show(SystemParameters.FullPrimaryScreenHeight.ToString());
            //MessageBox.Show(SystemParameters.FullPrimaryScreenWidth.ToString());

            // Catalog all exported parts within this assembly
            this.catalog = new AssemblyCatalog(typeof(App).Assembly);
            this.compositionContainer = new CompositionContainer(this.catalog);

            Window window = new MainWindow(this.compositionContainer.GetExportedValue<KinectController>());
            window.Show();
        }