コード例 #1
0
        private void btnNavToRoomPreview_Click(object sender, RoutedEventArgs e)
        {
            RoomPreview demoWindow = new RoomPreview();

            demoWindow.Show();
            this.Close();
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.winRoomPreview = ((Group01.RoomPreview)(target));
                return;

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

            #line 10 "..\..\RoomPreview.xaml"
                this.btnReturnToMainWindow.Click += new System.Windows.RoutedEventHandler(this.btnReturnToMainWindow_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.lblSystemTitle = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.imgRooms = ((System.Windows.Controls.Image)(target));
                return;

            case 5:
                this.cbxRoomType = ((System.Windows.Controls.ComboBox)(target));

            #line 13 "..\..\RoomPreview.xaml"
                this.cbxRoomType.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbxRoomType_SelectionChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.lblRoomType = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }