Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.pageListePavillon = ((WpfGescale.PageListePavillon)(target));
                return;

            case 2:
                this.dataGridListePavillon = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 3:
                this.buttonSupprimer = ((System.Windows.Controls.Button)(target));

            #line 19 "..\..\PageListePavillon.xaml"
                this.buttonSupprimer.Click += new System.Windows.RoutedEventHandler(this.buttonSupprimer_Click);

            #line default
            #line hidden
                return;

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

            #line 20 "..\..\PageListePavillon.xaml"
                this.buttonMaj.Click += new System.Windows.RoutedEventHandler(this.buttonMaj_Click);

            #line default
            #line hidden
                return;

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

            #line 21 "..\..\PageListePavillon.xaml"
                this.buttonRetour.Click += new System.Windows.RoutedEventHandler(this.buttonRetour_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Пример #2
0
        private void itemListePavillon_Click(object sender, RoutedEventArgs e)
        {
            PageListePavillon PageListePavillon = new PageListePavillon();

            this.NavigationService.Navigate(PageListePavillon);
        }