示例#1
0
        public Tours(MainWindow mainWindow)
        {
            InitializeComponent();

            this.mainWindow = mainWindow;
            toursWindow = this;
            loadTours();
        }
示例#2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.tours = ((travelAgency.Tours)(target));
     
     #line 10 "..\..\Tours.xaml"
     this.tours.Closing += new System.ComponentModel.CancelEventHandler(this.tours_Closing);
     
     #line default
     #line hidden
     return;
     case 2:
     this.toursList = ((System.Windows.Controls.ListView)(target));
     return;
     case 3:
     this.BackBtn = ((System.Windows.Controls.Button)(target));
     
     #line 54 "..\..\Tours.xaml"
     this.BackBtn.Click += new System.Windows.RoutedEventHandler(this.BackBtn_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
示例#3
0
 private void TicketsBtn_Click(object sender, RoutedEventArgs e)
 {
     var tours = new Tours(mainWindow);
     tours.Show();
     Hide();
 }