void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Main = ((TicketReminder.Windows.MainAppWindow)(target)); return; case 2: this.panelTop = ((System.Windows.Controls.WrapPanel)(target)); #line 53 "..\..\..\Windows\MainAppWindow.xaml" this.panelTop.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.panelTop_MouseLeftButtonDown); #line default #line hidden return; case 3: this.stackPanelName = ((System.Windows.Controls.StackPanel)(target)); return; case 4: this.split1 = ((System.Windows.Controls.Label)(target)); return; case 5: this.imageUser = ((System.Windows.Controls.Image)(target)); return; case 6: this.split2 = ((System.Windows.Controls.Label)(target)); return; case 7: this.txtBlockUserNameGeneralPanel = ((System.Windows.Controls.TextBlock)(target)); return; case 8: this.txtBlockUserSurNameGeneralPanel = ((System.Windows.Controls.TextBlock)(target)); return; case 9: this.txtBlockCityCountryGeneralPanel = ((System.Windows.Controls.TextBlock)(target)); return; case 10: this.split3 = ((System.Windows.Controls.Label)(target)); return; case 11: this.txtTitleWeatherFrom = ((System.Windows.Controls.TextBlock)(target)); return; case 12: this.txtTitleWeatherTo = ((System.Windows.Controls.TextBlock)(target)); return; case 13: this.split4 = ((System.Windows.Controls.Label)(target)); return; case 14: this.textBlockNewTicketHeader = ((System.Windows.Controls.TextBlock)(target)); return; case 15: this.split5 = ((System.Windows.Controls.Label)(target)); return; case 16: this.weatherControl = ((TicketReminder.Showcase.WeatherControl)(target)); return; case 17: this.listBoxForecastWeather = ((System.Windows.Controls.ListBox)(target)); return; case 18: this.txtWeatherCalled = ((System.Windows.Controls.TextBlock)(target)); return; case 19: this.checkBoxWeather = ((System.Windows.Controls.CheckBox)(target)); #line 123 "..\..\..\Windows\MainAppWindow.xaml" this.checkBoxWeather.Checked += new System.Windows.RoutedEventHandler(this.checkBoxWeather_Checked); #line default #line hidden #line 123 "..\..\..\Windows\MainAppWindow.xaml" this.checkBoxWeather.Unchecked += new System.Windows.RoutedEventHandler(this.checkBoxWeather_Unchecked); #line default #line hidden return; case 20: this.split6 = ((System.Windows.Controls.Label)(target)); return; case 21: this.cmbBoxPointFrom = ((System.Windows.Controls.ComboBox)(target)); return; case 22: this.cmbBoxPointTo = ((System.Windows.Controls.ComboBox)(target)); #line 141 "..\..\..\Windows\MainAppWindow.xaml" this.cmbBoxPointTo.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cmbBoxPointTo_SelectionChanged); #line default #line hidden return; case 23: this.datePicker = ((System.Windows.Controls.DatePicker)(target)); return; case 24: this.cmbBoxTrainNumber = ((System.Windows.Controls.ComboBox)(target)); #line 145 "..\..\..\Windows\MainAppWindow.xaml" this.cmbBoxTrainNumber.DropDownOpened += new System.EventHandler(this.cmbBoxTrainNumber_DropDownOpened); #line default #line hidden return; case 25: this.btnSearchSettings = ((System.Windows.Controls.Button)(target)); #line 146 "..\..\..\Windows\MainAppWindow.xaml" this.btnSearchSettings.Click += new System.Windows.RoutedEventHandler(this.btnSearchSettings_Click); #line default #line hidden return; case 26: this.btnSearchSearchTabs = ((System.Windows.Controls.Button)(target)); #line 147 "..\..\..\Windows\MainAppWindow.xaml" this.btnSearchSearchTabs.Click += new System.Windows.RoutedEventHandler(this.btnSearchSearchTabs_Click); #line default #line hidden return; case 27: this.split7 = ((System.Windows.Controls.Label)(target)); return; case 28: this.tabItemTicket = ((System.Windows.Controls.TabItem)(target)); return; case 29: this.split6_Copy = ((System.Windows.Controls.Label)(target)); return; case 30: this.txtInfo = ((System.Windows.Controls.TextBlock)(target)); return; case 31: this.split8 = ((System.Windows.Controls.Label)(target)); return; case 32: this.txtBlockUserIdProfileTab = ((System.Windows.Controls.TextBlock)(target)); return; case 33: this.txtBlockFirstNameProfileTab = ((System.Windows.Controls.TextBlock)(target)); return; case 34: this.txtBlockLastNameProfileTab = ((System.Windows.Controls.TextBlock)(target)); return; case 35: this.txtBlockCityProfileTab = ((System.Windows.Controls.TextBlock)(target)); return; case 36: this.txtBlockEmailProfileTab = ((System.Windows.Controls.TextBlock)(target)); return; case 37: this.splitSettingsApp2 = ((System.Windows.Controls.Label)(target)); return; case 38: this.tbEmail = ((System.Windows.Controls.TextBox)(target)); return; case 39: this.passwordBoxEmailPass = ((System.Windows.Controls.PasswordBox)(target)); return; case 40: this.btnAddEmail = ((System.Windows.Controls.Button)(target)); #line 271 "..\..\..\Windows\MainAppWindow.xaml" this.btnAddEmail.Click += new System.Windows.RoutedEventHandler(this.btnAddEmail_Click); #line default #line hidden #line 271 "..\..\..\Windows\MainAppWindow.xaml" this.btnAddEmail.Unloaded += new System.Windows.RoutedEventHandler(this.btnAddEmail_Unloaded); #line default #line hidden return; case 41: this.splitSettingsApp1 = ((System.Windows.Controls.Label)(target)); return; case 42: this.passwordBoxVkPass = ((System.Windows.Controls.PasswordBox)(target)); return; case 43: this.tbLogin = ((System.Windows.Controls.TextBox)(target)); return; case 44: this.btnAddVkontakteAccount = ((System.Windows.Controls.Button)(target)); #line 284 "..\..\..\Windows\MainAppWindow.xaml" this.btnAddVkontakteAccount.Click += new System.Windows.RoutedEventHandler(this.btnAddVkontakteAccount_Click); #line default #line hidden return; case 45: this.ticketNotify = ((TicketReminder.Showcase.TicketNotify)(target)); return; case 46: this.btnCloseWindow = ((System.Windows.Controls.Button)(target)); #line 293 "..\..\..\Windows\MainAppWindow.xaml" this.btnCloseWindow.Click += new System.Windows.RoutedEventHandler(this.btnCloseWindow_Click); #line default #line hidden return; case 47: this.btnLeaveApp = ((System.Windows.Controls.Button)(target)); #line 308 "..\..\..\Windows\MainAppWindow.xaml" this.btnLeaveApp.Click += new System.Windows.RoutedEventHandler(this.btnLeaveApp_Click); #line default #line hidden return; case 48: this.txtTimeNow = ((System.Windows.Controls.TextBlock)(target)); return; case 49: this.txtDateNow = ((System.Windows.Controls.TextBlock)(target)); return; case 50: this.imageInternet = ((System.Windows.Controls.Image)(target)); return; } this._contentLoaded = true; }
private void btnShowTicket_Click(object sender, RoutedEventArgs e) { var win = AppWindow.IsWindowOpen<TicketReminder.Windows.MainAppWindow>(); if (win != null) win.Focus(); else { win = new TicketReminder.Windows.MainAppWindow(); win.Show(); } if (win != null && win.Focus() == false) win.Show(); }