コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.SurveyWindow = ((HololensPrototype.SurveyManager)(target));

            #line 8 "..\..\SurveyManager.xaml"
                this.SurveyWindow.Loaded += new System.Windows.RoutedEventHandler(this.windowLoaded);

            #line default
            #line hidden
                return;

            case 2:
                this.UploadSurvery = ((System.Windows.Controls.Button)(target));

            #line 15 "..\..\SurveyManager.xaml"
                this.UploadSurvery.Click += new System.Windows.RoutedEventHandler(this.UploadSurvery_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.SurveyGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 4:
                this.DeleteSurveyFiles = ((System.Windows.Controls.Button)(target));

            #line 17 "..\..\SurveyManager.xaml"
                this.DeleteSurveyFiles.Click += new System.Windows.RoutedEventHandler(this.DeleteSurveyFiles_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.SendSurvey = ((System.Windows.Controls.Button)(target));

            #line 18 "..\..\SurveyManager.xaml"
                this.SendSurvey.Click += new System.Windows.RoutedEventHandler(this.SendSurvey_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.MainMenu = ((System.Windows.Controls.Button)(target));

            #line 19 "..\..\SurveyManager.xaml"
                this.MainMenu.Click += new System.Windows.RoutedEventHandler(this.MainMenu_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
        private void openSurveyWndow(object sender, RoutedEventArgs e)
        {
            SurveyManager window = new SurveyManager();

            window.Show();
            this.Close();
        }