void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.accessText = ((System.Windows.Controls.AccessText)(target)); return; case 2: this.testLabel = ((System.Windows.Controls.Label)(target)); return; case 3: this.tbxScrollValue = ((System.Windows.Controls.TextBox)(target)); #line 17 "..\..\MainWindow.xaml" this.tbxScrollValue.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.NumberValidationTextBox); #line default #line hidden return; case 4: this.tbxTickValue = ((System.Windows.Controls.TextBox)(target)); #line 18 "..\..\MainWindow.xaml" this.tbxTickValue.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.NumberValidationTextBox); #line default #line hidden return; case 5: this.tbxEndTime = ((System.Windows.Controls.TextBox)(target)); #line 19 "..\..\MainWindow.xaml" this.tbxEndTime.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.NumberValidationTextBox); #line default #line hidden #line 19 "..\..\MainWindow.xaml" this.tbxEndTime.LostFocus += new System.Windows.RoutedEventHandler(this.TbxEndTime_LostFocus); #line default #line hidden return; case 6: this.slider = ((System.Windows.Controls.Slider)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.popup = ((OdtwarzaczAudio8441.WindowPupUp)(target)); #line 20 "..\..\WindowPupUp.xaml" this.popup.Closed += new System.EventHandler(this.Window_Closed); #line default #line hidden return; case 2: this.Top = ((System.Windows.Controls.DockPanel)(target)); #line 29 "..\..\WindowPupUp.xaml" this.Top.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Top_MouseDown); #line default #line hidden return; case 3: this.LabelTitle = ((System.Windows.Controls.Label)(target)); return; case 4: this.ButtonClose = ((System.Windows.Controls.Button)(target)); #line 31 "..\..\WindowPupUp.xaml" this.ButtonClose.Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 5: this.MainText = ((System.Windows.Controls.AccessText)(target)); return; case 6: this.ButtonOK = ((System.Windows.Controls.Button)(target)); #line 42 "..\..\WindowPupUp.xaml" this.ButtonOK.Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.exitButton = ((System.Windows.Controls.Button)(target)); #line 30 "..\..\..\GUI\AddNewSaleWindow.xaml" this.exitButton.Click += new System.Windows.RoutedEventHandler(this.exitButton_Click); #line default #line hidden return; case 2: this.validationLabel = ((System.Windows.Controls.Label)(target)); return; case 3: this.validationAccessText = ((System.Windows.Controls.AccessText)(target)); return; case 4: this.importdateDatePicker = ((System.Windows.Controls.DatePicker)(target)); return; case 5: this.nowdateDatePicker = ((System.Windows.Controls.DatePicker)(target)); return; case 6: this.okButton = ((System.Windows.Controls.Button)(target)); #line 55 "..\..\..\GUI\AddNewSaleWindow.xaml" this.okButton.Click += new System.Windows.RoutedEventHandler(this.okButton_Click); #line default #line hidden return; case 7: this.cancelButton = ((System.Windows.Controls.Button)(target)); #line 56 "..\..\..\GUI\AddNewSaleWindow.xaml" this.cancelButton.Click += new System.Windows.RoutedEventHandler(this.cancelButton_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 19 "..\..\..\TransWord.xaml" ((MaterialDesignThemes.Wpf.PackIcon)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.PackIcon_MouseDown); #line default #line hidden return; case 2: this.org_text = ((System.Windows.Controls.TextBlock)(target)); return; case 3: this.lang_in = ((System.Windows.Controls.Label)(target)); return; case 4: this.lang_out = ((System.Windows.Controls.Label)(target)); return; case 5: this.new_text = ((System.Windows.Controls.TextBlock)(target)); return; case 6: #line 29 "..\..\..\TransWord.xaml" ((MaterialDesignThemes.Wpf.PackIcon)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.PackIcon_MouseDown_1); #line default #line hidden return; case 7: this._phienam = ((System.Windows.Controls.Label)(target)); return; case 8: this._dangtu = ((System.Windows.Controls.Label)(target)); return; case 9: this._nghiadang = ((System.Windows.Controls.AccessText)(target)); return; } this._contentLoaded = true; }
public void AddToolBarCommands(IEnumerable<ToolBarCommand> commands) { int index = 0; foreach (var command in commands) { AccessText accessText = new AccessText() { Text = command.Text }; Button button = new Button() { Content = accessText, Command = command.Command }; if (!string.IsNullOrEmpty(command.ToolTip)) { button.ToolTip = command.ToolTip; } toolBar.Items.Insert(index, button); dynamicToolBarItems.Add(button); index += 1; } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.txtbox = ((System.Windows.Controls.AccessText)(target)); return; case 2: this.Progress = ((System.Windows.Controls.ProgressBar)(target)); return; } this._contentLoaded = true; }
// Token: 0x06004213 RID: 16915 RVA: 0x0012E47C File Offset: 0x0012C67C internal static string RemoveAccessKeyMarker(string text) { if (!string.IsNullOrEmpty(text)) { string text2 = AccessText.AccessKeyMarker.ToString(); string oldValue = text2 + text2; int num = AccessText.FindAccessKeyMarker(text); if (num >= 0 && num < text.Length - 1) { text = text.Remove(num, 1); } text = text.Replace(oldValue, text2); } return(text); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.print1 = ((System.Windows.Controls.Button)(target)); return; case 2: this.push1 = ((System.Windows.Controls.Button)(target)); return; case 3: this.pop1 = ((System.Windows.Controls.Button)(target)); return; case 4: this.top1 = ((System.Windows.Controls.Button)(target)); return; case 5: this.clear1 = ((System.Windows.Controls.Button)(target)); return; case 6: this.total1 = ((System.Windows.Controls.Button)(target)); return; case 7: this.push2 = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.print2 = ((System.Windows.Controls.Label)(target)); return; case 9: this.print2a = ((System.Windows.Controls.AccessText)(target)); return; case 10: this.empty1 = ((System.Windows.Controls.Button)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 13 "..\..\..\View\PopUpWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 2: this.Message = ((System.Windows.Controls.AccessText)(target)); return; } this._contentLoaded = true; }
/// <summary> /// When overridden in a derived class, is invoked whenever application code or internal /// processes call System.Windows.FrameworkElement.ApplyTemplate(). /// </summary> public override void OnApplyTemplate() { textRun = GetTemplateChild("PART_TextRun") as AccessText; textRun2 = GetTemplateChild("PART_TextRun2") as AccessText; UpdateTextRun(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 9 "..\..\..\..\Ui\Windows\LoggingConsole.xaml" ((ObdExpress.Ui.Windows.LoggingConsole)(target)).Closed += new System.EventHandler(this.Window_Closed); #line default #line hidden #line 9 "..\..\..\..\Ui\Windows\LoggingConsole.xaml" ((ObdExpress.Ui.Windows.LoggingConsole)(target)).KeyUp += new System.Windows.Input.KeyEventHandler(this.Window_KeyUp); #line default #line hidden return; case 2: this.spToolbar = ((System.Windows.Controls.StackPanel)(target)); return; case 3: this.tbBtnStartStop = ((System.Windows.Controls.Button)(target)); #line 25 "..\..\..\..\Ui\Windows\LoggingConsole.xaml" this.tbBtnStartStop.Click += new System.Windows.RoutedEventHandler(this.tbBtnStartStop_Click); #line default #line hidden return; case 4: this.imgStartStopIcon = ((System.Windows.Controls.Image)(target)); return; case 5: this.txtStartStopAccessText = ((System.Windows.Controls.AccessText)(target)); return; case 6: this.tbBtnSelectAll = ((System.Windows.Controls.Button)(target)); #line 34 "..\..\..\..\Ui\Windows\LoggingConsole.xaml" this.tbBtnSelectAll.Click += new System.Windows.RoutedEventHandler(this.tbBtnSelectAll_Click); #line default #line hidden return; case 7: this.tbBtnCopy = ((System.Windows.Controls.Button)(target)); #line 40 "..\..\..\..\Ui\Windows\LoggingConsole.xaml" this.tbBtnCopy.Click += new System.Windows.RoutedEventHandler(this.tbBtnCopy_Click); #line default #line hidden return; case 8: this.tbBtnClear = ((System.Windows.Controls.Button)(target)); #line 46 "..\..\..\..\Ui\Windows\LoggingConsole.xaml" this.tbBtnClear.Click += new System.Windows.RoutedEventHandler(this.tbBtnClear_Click); #line default #line hidden return; case 9: this.tbBtnSave = ((System.Windows.Controls.Button)(target)); #line 52 "..\..\..\..\Ui\Windows\LoggingConsole.xaml" this.tbBtnSave.Click += new System.Windows.RoutedEventHandler(this.tbBtnSave_Click); #line default #line hidden return; case 10: this.tbBtnConfigure = ((System.Windows.Controls.Button)(target)); #line 61 "..\..\..\..\Ui\Windows\LoggingConsole.xaml" this.tbBtnConfigure.Click += new System.Windows.RoutedEventHandler(this.tbBtnConfigure_Click); #line default #line hidden return; case 11: this.tbBtnScrollLock = ((System.Windows.Controls.Primitives.ToggleButton)(target)); #line 68 "..\..\..\..\Ui\Windows\LoggingConsole.xaml" this.tbBtnScrollLock.Click += new System.Windows.RoutedEventHandler(this.tbBtnScrollLock_Click); #line default #line hidden return; case 12: this.tbBtnClose = ((System.Windows.Controls.Button)(target)); #line 77 "..\..\..\..\Ui\Windows\LoggingConsole.xaml" this.tbBtnClose.Click += new System.Windows.RoutedEventHandler(this.tbBtnClose_Click); #line default #line hidden return; case 13: this.txtLoggingConsole = ((System.Windows.Controls.TextBox)(target)); return; } this._contentLoaded = true; }
// Token: 0x06004211 RID: 16913 RVA: 0x0012E228 File Offset: 0x0012C428 private void UpdateAccessKey() { TextPointer textPointer = new TextPointer(this.TextContainer.Start); while (!this._accessKeyLocated && textPointer.CompareTo(this.TextContainer.End) < 0) { TextPointerContext pointerContext = textPointer.GetPointerContext(LogicalDirection.Forward); if (pointerContext == TextPointerContext.Text) { string textInRun = textPointer.GetTextInRun(LogicalDirection.Forward); int num = AccessText.FindAccessKeyMarker(textInRun); if (num != -1 && num < textInRun.Length - 1) { string nextTextElement = StringInfo.GetNextTextElement(textInRun, num + 1); TextPointer positionAtOffset = textPointer.GetPositionAtOffset(num + 1 + nextTextElement.Length); this._accessKey = new Run(nextTextElement); this._accessKey.Style = AccessText.AccessKeyStyle; this.RegisterAccessKey(); AccessText.HasCustomSerializationStorage.SetValue(this._accessKey, true); this._accessKeyLocated = true; this.UninitializeTextContainerListener(); this.TextContainer.BeginChange(); try { TextPointer textPointer2 = new TextPointer(textPointer, num); TextRangeEdit.DeleteInlineContent(textPointer2, positionAtOffset); this._accessKey.RepositionWithContent(textPointer2); } finally { this.TextContainer.EndChange(); this.InitializeTextContainerListener(); } } } textPointer.MoveToNextContextPosition(LogicalDirection.Forward); } textPointer = new TextPointer(this.TextContainer.Start); string text = AccessText.AccessKeyMarker.ToString(); string oldValue = text + text; while (textPointer.CompareTo(this.TextContainer.End) < 0) { TextPointerContext pointerContext2 = textPointer.GetPointerContext(LogicalDirection.Forward); if (pointerContext2 == TextPointerContext.Text) { string textInRun2 = textPointer.GetTextInRun(LogicalDirection.Forward); string text2 = textInRun2.Replace(oldValue, text); if (textInRun2 != text2) { TextPointer start = new TextPointer(textPointer, 0); TextPointer textPointer3 = new TextPointer(textPointer, textInRun2.Length); this.UninitializeTextContainerListener(); this.TextContainer.BeginChange(); try { textPointer3.InsertTextInRun(text2); TextRangeEdit.DeleteInlineContent(start, textPointer3); } finally { this.TextContainer.EndChange(); this.InitializeTextContainerListener(); } } } textPointer.MoveToNextContextPosition(LogicalDirection.Forward); } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ArrivalDate = ((System.Windows.Controls.DatePicker)(target)); return; case 2: this.DepratureDate = ((System.Windows.Controls.DatePicker)(target)); return; case 3: this.Chalet = ((System.Windows.Controls.ComboBox)(target)); return; case 4: this.Customer = ((System.Windows.Controls.ComboBox)(target)); return; case 5: #line 58 "..\..\AddNewBooking.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddNewCustomer_Click); #line default #line hidden return; case 6: this.GuestsListView = ((System.Windows.Controls.ListView)(target)); #line 66 "..\..\AddNewBooking.xaml" this.GuestsListView.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.guestsListView_SelectionChanged); #line default #line hidden return; case 7: this.AddNewGuestName = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.AddNewGuestPassportNumber = ((System.Windows.Controls.TextBox)(target)); return; case 9: this.AddNewGuestAge = ((System.Windows.Controls.TextBox)(target)); #line 92 "..\..\AddNewBooking.xaml" this.AddNewGuestAge.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.NumberValidationTextBox); #line default #line hidden return; case 10: this.AddNewGuestButton = ((System.Windows.Controls.Button)(target)); #line 93 "..\..\AddNewBooking.xaml" this.AddNewGuestButton.Click += new System.Windows.RoutedEventHandler(this.AddNewGuest_Click); #line default #line hidden return; case 11: this.RemoveSelectedGuestButton = ((System.Windows.Controls.Button)(target)); #line 96 "..\..\AddNewBooking.xaml" this.RemoveSelectedGuestButton.Click += new System.Windows.RoutedEventHandler(this.RemoveSelectedGuest_Click); #line default #line hidden return; case 12: this.HireCarCheckbox = ((System.Windows.Controls.CheckBox)(target)); #line 116 "..\..\AddNewBooking.xaml" this.HireCarCheckbox.Checked += new System.Windows.RoutedEventHandler(this.HireCarCheckboxChanged); #line default #line hidden #line 116 "..\..\AddNewBooking.xaml" this.HireCarCheckbox.Unchecked += new System.Windows.RoutedEventHandler(this.HireCarCheckboxChanged); #line default #line hidden return; case 13: this.HireCarCheckbo = ((System.Windows.Controls.AccessText)(target)); return; case 14: this.CarFrom = ((System.Windows.Controls.DatePicker)(target)); return; case 15: this.CarTo = ((System.Windows.Controls.DatePicker)(target)); return; case 16: this.CarDriverName = ((System.Windows.Controls.ComboBox)(target)); return; case 17: this.AddEveningMeals = ((System.Windows.Controls.CheckBox)(target)); return; case 18: this.AddBreakfasts = ((System.Windows.Controls.CheckBox)(target)); return; case 19: #line 179 "..\..\AddNewBooking.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddNewBooking_Click); #line default #line hidden return; case 20: #line 180 "..\..\AddNewBooking.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CloseWindow_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 6 "..\..\..\Controls\ucButton.xaml" ((Dominion.NET_WPF.Controls.ucButton)(target)).IsEnabledChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.UserControl_IsEnabledChanged); #line default #line hidden return; case 2: this.bHover = ((System.Windows.Controls.Border)(target)); return; case 3: this.bButton = ((System.Windows.Controls.Button)(target)); #line 12 "..\..\..\Controls\ucButton.xaml" this.bButton.Click += new System.Windows.RoutedEventHandler(this.b_Click); #line default #line hidden return; case 4: this.atHotkey = ((System.Windows.Controls.AccessText)(target)); return; case 5: this.tbText = ((System.Windows.Controls.TextBlock)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 10 "..\..\AppWindow.xaml" ((Household_expenses_log.AppWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.AppWindow_Closing); #line default #line hidden #line 11 "..\..\AppWindow.xaml" ((Household_expenses_log.AppWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown); #line default #line hidden return; case 2: #line 17 "..\..\AppWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.mi_save_week_stat_Click); #line default #line hidden return; case 3: #line 18 "..\..\AppWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.mi_save_month_stat_Click); #line default #line hidden return; case 4: #line 19 "..\..\AppWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.mi_save_year_stat_Click); #line default #line hidden return; case 5: #line 21 "..\..\AppWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.mi_save_history_Click); #line default #line hidden return; case 6: #line 24 "..\..\AppWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.mi_watch_ref_Click); #line default #line hidden return; case 7: #line 25 "..\..\AppWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.mi_about_program_Click); #line default #line hidden return; case 8: #line 27 "..\..\AppWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.mi_exit_Click); #line default #line hidden return; case 9: this.lb_user_login = ((System.Windows.Controls.Label)(target)); return; case 10: this.lb_balance = ((System.Windows.Controls.Label)(target)); return; case 11: #line 37 "..\..\AppWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.b_change_acc_Click); #line default #line hidden return; case 12: #line 41 "..\..\AppWindow.xaml" ((System.Windows.Controls.TabControl)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.tab_control_SelectionChanged); #line default #line hidden return; case 13: this.sp_history = ((System.Windows.Controls.StackPanel)(target)); return; case 14: #line 49 "..\..\AppWindow.xaml" ((System.Windows.Controls.TabItem)(target)).GotFocus += new System.Windows.RoutedEventHandler(this.ti_stats_GotFocus); #line default #line hidden return; case 15: this.cb_period = ((System.Windows.Controls.ComboBox)(target)); return; case 16: this.cbi_week = ((System.Windows.Controls.ComboBoxItem)(target)); #line 52 "..\..\AppWindow.xaml" this.cbi_week.Selected += new System.Windows.RoutedEventHandler(this.cbi_week_Selected); #line default #line hidden return; case 17: this.cbi_month = ((System.Windows.Controls.ComboBoxItem)(target)); #line 53 "..\..\AppWindow.xaml" this.cbi_month.Selected += new System.Windows.RoutedEventHandler(this.cbi_month_Selected); #line default #line hidden return; case 18: this.cbi_year = ((System.Windows.Controls.ComboBoxItem)(target)); #line 54 "..\..\AppWindow.xaml" this.cbi_year.Selected += new System.Windows.RoutedEventHandler(this.cbi_year_Selected); #line default #line hidden return; case 19: this.cb_expenses_income = ((System.Windows.Controls.ComboBox)(target)); #line 57 "..\..\AppWindow.xaml" this.cb_expenses_income.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cb_expenses_income_SelectionChanged); #line default #line hidden return; case 20: this.ch_statistics = ((System.Windows.Forms.DataVisualization.Charting.Chart)(target)); return; case 21: this.lb_statistics = ((System.Windows.Controls.AccessText)(target)); return; case 22: this.tb_sum = ((System.Windows.Controls.TextBox)(target)); #line 84 "..\..\AppWindow.xaml" this.tb_sum.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.tb_sum_TextChanged); #line default #line hidden #line 84 "..\..\AppWindow.xaml" this.tb_sum.GotFocus += new System.Windows.RoutedEventHandler(this.tb_sum_GotFocus); #line default #line hidden return; case 23: this.lb_warning = ((System.Windows.Controls.Label)(target)); return; case 24: this.tc_categories = ((System.Windows.Controls.TabControl)(target)); return; case 25: this.tab_spent = ((System.Windows.Controls.TabItem)(target)); return; case 26: this.stack_panel1 = ((System.Windows.Controls.StackPanel)(target)); return; case 27: this.lb_choose_category = ((System.Windows.Controls.Label)(target)); return; case 28: this.wp_categories = ((System.Windows.Controls.WrapPanel)(target)); return; case 29: this.img1 = ((System.Windows.Controls.Image)(target)); #line 102 "..\..\AppWindow.xaml" this.img1.MouseEnter += new System.Windows.Input.MouseEventHandler(this.img_MouseEnter); #line default #line hidden #line 102 "..\..\AppWindow.xaml" this.img1.MouseLeave += new System.Windows.Input.MouseEventHandler(this.img_MouseLeave); #line default #line hidden #line 103 "..\..\AppWindow.xaml" this.img1.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.img_MouseLeftButtonDown); #line default #line hidden return; case 30: this.img2 = ((System.Windows.Controls.Image)(target)); #line 111 "..\..\AppWindow.xaml" this.img2.MouseEnter += new System.Windows.Input.MouseEventHandler(this.img_MouseEnter); #line default #line hidden #line 111 "..\..\AppWindow.xaml" this.img2.MouseLeave += new System.Windows.Input.MouseEventHandler(this.img_MouseLeave); #line default #line hidden #line 112 "..\..\AppWindow.xaml" this.img2.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.img_MouseLeftButtonDown); #line default #line hidden return; case 31: this.img3 = ((System.Windows.Controls.Image)(target)); #line 120 "..\..\AppWindow.xaml" this.img3.MouseEnter += new System.Windows.Input.MouseEventHandler(this.img_MouseEnter); #line default #line hidden #line 120 "..\..\AppWindow.xaml" this.img3.MouseLeave += new System.Windows.Input.MouseEventHandler(this.img_MouseLeave); #line default #line hidden #line 121 "..\..\AppWindow.xaml" this.img3.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.img_MouseLeftButtonDown); #line default #line hidden return; case 32: this.img4 = ((System.Windows.Controls.Image)(target)); #line 129 "..\..\AppWindow.xaml" this.img4.MouseEnter += new System.Windows.Input.MouseEventHandler(this.img_MouseEnter); #line default #line hidden #line 129 "..\..\AppWindow.xaml" this.img4.MouseLeave += new System.Windows.Input.MouseEventHandler(this.img_MouseLeave); #line default #line hidden #line 130 "..\..\AppWindow.xaml" this.img4.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.img_MouseLeftButtonDown); #line default #line hidden return; case 33: this.img5 = ((System.Windows.Controls.Image)(target)); #line 138 "..\..\AppWindow.xaml" this.img5.MouseEnter += new System.Windows.Input.MouseEventHandler(this.img_MouseEnter); #line default #line hidden #line 138 "..\..\AppWindow.xaml" this.img5.MouseLeave += new System.Windows.Input.MouseEventHandler(this.img_MouseLeave); #line default #line hidden #line 139 "..\..\AppWindow.xaml" this.img5.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.img_MouseLeftButtonDown); #line default #line hidden return; case 34: this.img6 = ((System.Windows.Controls.Image)(target)); #line 147 "..\..\AppWindow.xaml" this.img6.MouseEnter += new System.Windows.Input.MouseEventHandler(this.img_MouseEnter); #line default #line hidden #line 147 "..\..\AppWindow.xaml" this.img6.MouseLeave += new System.Windows.Input.MouseEventHandler(this.img_MouseLeave); #line default #line hidden #line 148 "..\..\AppWindow.xaml" this.img6.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.img_MouseLeftButtonDown); #line default #line hidden return; case 35: this.img7 = ((System.Windows.Controls.Image)(target)); #line 156 "..\..\AppWindow.xaml" this.img7.MouseEnter += new System.Windows.Input.MouseEventHandler(this.img_MouseEnter); #line default #line hidden #line 156 "..\..\AppWindow.xaml" this.img7.MouseLeave += new System.Windows.Input.MouseEventHandler(this.img_MouseLeave); #line default #line hidden #line 157 "..\..\AppWindow.xaml" this.img7.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.img_MouseLeftButtonDown); #line default #line hidden return; case 36: this.img8 = ((System.Windows.Controls.Image)(target)); #line 165 "..\..\AppWindow.xaml" this.img8.MouseEnter += new System.Windows.Input.MouseEventHandler(this.img_MouseEnter); #line default #line hidden #line 165 "..\..\AppWindow.xaml" this.img8.MouseLeave += new System.Windows.Input.MouseEventHandler(this.img_MouseLeave); #line default #line hidden #line 166 "..\..\AppWindow.xaml" this.img8.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.img_MouseLeftButtonDown); #line default #line hidden return; case 37: this.img9 = ((System.Windows.Controls.Image)(target)); #line 174 "..\..\AppWindow.xaml" this.img9.MouseEnter += new System.Windows.Input.MouseEventHandler(this.img_MouseEnter); #line default #line hidden #line 174 "..\..\AppWindow.xaml" this.img9.MouseLeave += new System.Windows.Input.MouseEventHandler(this.img_MouseLeave); #line default #line hidden #line 175 "..\..\AppWindow.xaml" this.img9.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.img_MouseLeftButtonDown); #line default #line hidden return; case 38: this.img10 = ((System.Windows.Controls.Image)(target)); #line 183 "..\..\AppWindow.xaml" this.img10.MouseEnter += new System.Windows.Input.MouseEventHandler(this.img_MouseEnter); #line default #line hidden #line 183 "..\..\AppWindow.xaml" this.img10.MouseLeave += new System.Windows.Input.MouseEventHandler(this.img_MouseLeave); #line default #line hidden #line 184 "..\..\AppWindow.xaml" this.img10.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.img_MouseLeftButtonDown); #line default #line hidden return; case 39: this.img11 = ((System.Windows.Controls.Image)(target)); #line 192 "..\..\AppWindow.xaml" this.img11.MouseEnter += new System.Windows.Input.MouseEventHandler(this.img_MouseEnter); #line default #line hidden #line 192 "..\..\AppWindow.xaml" this.img11.MouseLeave += new System.Windows.Input.MouseEventHandler(this.img_MouseLeave); #line default #line hidden #line 193 "..\..\AppWindow.xaml" this.img11.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.img_MouseLeftButtonDown); #line default #line hidden return; case 40: this.img12 = ((System.Windows.Controls.Image)(target)); #line 201 "..\..\AppWindow.xaml" this.img12.MouseEnter += new System.Windows.Input.MouseEventHandler(this.img_MouseEnter); #line default #line hidden #line 201 "..\..\AppWindow.xaml" this.img12.MouseLeave += new System.Windows.Input.MouseEventHandler(this.img_MouseLeave); #line default #line hidden #line 202 "..\..\AppWindow.xaml" this.img12.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.img_MouseLeftButtonDown); #line default #line hidden return; case 41: this.img13 = ((System.Windows.Controls.Image)(target)); #line 210 "..\..\AppWindow.xaml" this.img13.MouseEnter += new System.Windows.Input.MouseEventHandler(this.img_MouseEnter); #line default #line hidden #line 210 "..\..\AppWindow.xaml" this.img13.MouseLeave += new System.Windows.Input.MouseEventHandler(this.img_MouseLeave); #line default #line hidden #line 211 "..\..\AppWindow.xaml" this.img13.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.img_MouseLeftButtonDown); #line default #line hidden return; case 42: this.img14 = ((System.Windows.Controls.Image)(target)); #line 219 "..\..\AppWindow.xaml" this.img14.MouseEnter += new System.Windows.Input.MouseEventHandler(this.img_MouseEnter); #line default #line hidden #line 219 "..\..\AppWindow.xaml" this.img14.MouseLeave += new System.Windows.Input.MouseEventHandler(this.img_MouseLeave); #line default #line hidden #line 220 "..\..\AppWindow.xaml" this.img14.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.img_MouseLeftButtonDown); #line default #line hidden return; case 43: this.stack_panel2 = ((System.Windows.Controls.StackPanel)(target)); return; case 44: this.lb_choose_category2 = ((System.Windows.Controls.Label)(target)); return; case 45: this.wp_categories2 = ((System.Windows.Controls.WrapPanel)(target)); return; case 46: this.img15 = ((System.Windows.Controls.Image)(target)); #line 236 "..\..\AppWindow.xaml" this.img15.MouseEnter += new System.Windows.Input.MouseEventHandler(this.img_MouseEnter); #line default #line hidden #line 236 "..\..\AppWindow.xaml" this.img15.MouseLeave += new System.Windows.Input.MouseEventHandler(this.img_MouseLeave); #line default #line hidden #line 237 "..\..\AppWindow.xaml" this.img15.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.img_MouseLeftButtonDown); #line default #line hidden return; case 47: this.img16 = ((System.Windows.Controls.Image)(target)); #line 245 "..\..\AppWindow.xaml" this.img16.MouseEnter += new System.Windows.Input.MouseEventHandler(this.img_MouseEnter); #line default #line hidden #line 245 "..\..\AppWindow.xaml" this.img16.MouseLeave += new System.Windows.Input.MouseEventHandler(this.img_MouseLeave); #line default #line hidden #line 245 "..\..\AppWindow.xaml" this.img16.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.img_MouseLeftButtonDown); #line default #line hidden return; case 48: this.lb_succes = ((System.Windows.Controls.Label)(target)); return; case 49: #line 255 "..\..\AppWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.b_add_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 5 "..\..\..\..\UI\Candidate4.xaml" ((ProjectEnlightenment.UI.Candidate4)(target)).KeyUp += new System.Windows.Input.KeyEventHandler(this.Window_KeyUp); #line default #line hidden #line 5 "..\..\..\..\UI\Candidate4.xaml" ((ProjectEnlightenment.UI.Candidate4)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.timeLabel = ((System.Windows.Controls.Label)(target)); return; case 3: this.backButton = ((System.Windows.Controls.Button)(target)); #line 21 "..\..\..\..\UI\Candidate4.xaml" this.backButton.Click += new System.Windows.RoutedEventHandler(this.backButton_Click); #line default #line hidden return; case 4: this.nextButton = ((System.Windows.Controls.Button)(target)); #line 22 "..\..\..\..\UI\Candidate4.xaml" this.nextButton.Click += new System.Windows.RoutedEventHandler(this.nextButton_Click); #line default #line hidden return; case 5: this.discontinueButton = ((System.Windows.Controls.Button)(target)); #line 23 "..\..\..\..\UI\Candidate4.xaml" this.discontinueButton.Click += new System.Windows.RoutedEventHandler(this.discontinueButton_Click); #line default #line hidden return; case 6: this.finishButton = ((System.Windows.Controls.Button)(target)); #line 24 "..\..\..\..\UI\Candidate4.xaml" this.finishButton.Click += new System.Windows.RoutedEventHandler(this.finishButton_Click); #line default #line hidden return; case 7: this.questionLabel = ((System.Windows.Controls.TextBlock)(target)); return; case 8: this.descriptiveAnswerGrid = ((System.Windows.Controls.Grid)(target)); return; case 9: this.descriptionTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 10: this.objectiveAnswerGrid = ((System.Windows.Controls.Grid)(target)); return; case 11: this.option0 = ((System.Windows.Controls.CheckBox)(target)); #line 58 "..\..\..\..\UI\Candidate4.xaml" this.option0.Checked += new System.Windows.RoutedEventHandler(this.option0_Checked); #line default #line hidden return; case 12: this.option0Text = ((System.Windows.Controls.AccessText)(target)); return; case 13: this.option1 = ((System.Windows.Controls.CheckBox)(target)); #line 63 "..\..\..\..\UI\Candidate4.xaml" this.option1.Checked += new System.Windows.RoutedEventHandler(this.option1_Checked); #line default #line hidden return; case 14: this.option1Text = ((System.Windows.Controls.AccessText)(target)); return; case 15: this.option2 = ((System.Windows.Controls.CheckBox)(target)); #line 68 "..\..\..\..\UI\Candidate4.xaml" this.option2.Checked += new System.Windows.RoutedEventHandler(this.option2_Checked); #line default #line hidden return; case 16: this.option2Text = ((System.Windows.Controls.AccessText)(target)); return; case 17: this.option3 = ((System.Windows.Controls.CheckBox)(target)); #line 73 "..\..\..\..\UI\Candidate4.xaml" this.option3.Checked += new System.Windows.RoutedEventHandler(this.option3_Checked); #line default #line hidden return; case 18: this.option3Text = ((System.Windows.Controls.AccessText)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 9 "..\..\XemTheoLoai.xaml" ((ShopCar.XemTheoLoai)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded); #line default #line hidden return; case 2: this.txtTile = ((System.Windows.Controls.AccessText)(target)); return; case 3: this.ListHot = ((System.Windows.Controls.ListBox)(target)); return; case 6: this.btnInPage = ((System.Windows.Controls.TextBox)(target)); #line 85 "..\..\XemTheoLoai.xaml" this.btnInPage.KeyDown += new System.Windows.Input.KeyEventHandler(this.btnInPage_KeyDown); #line default #line hidden return; case 7: this.txtTotal = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.btnPrev = ((System.Windows.Controls.Button)(target)); #line 100 "..\..\XemTheoLoai.xaml" this.btnPrev.Click += new System.Windows.RoutedEventHandler(this.btnPrev_Click); #line default #line hidden return; case 9: this.ListButton = ((System.Windows.Controls.ListView)(target)); return; case 11: this.btnNext = ((System.Windows.Controls.Button)(target)); #line 113 "..\..\XemTheoLoai.xaml" this.btnNext.Click += new System.Windows.RoutedEventHandler(this.btnNext_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.front_canvas = ((System.Windows.Controls.Canvas)(target)); return; case 2: this.RdsIp = ((System.Windows.Controls.AccessText)(target)); return; case 3: this.Close = ((System.Windows.Controls.Image)(target)); #line 49 "..\..\UserControl1.xaml" this.Close.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Close_MouseDown); #line default #line hidden return; case 4: this.Maximize = ((System.Windows.Controls.Image)(target)); #line 59 "..\..\UserControl1.xaml" this.Maximize.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Maximize_MouseDown); #line default #line hidden return; case 5: this.KeyBoardControl = ((System.Windows.Controls.Image)(target)); #line 69 "..\..\UserControl1.xaml" this.KeyBoardControl.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.KeyBoardControl_MouseDown); #line default #line hidden return; case 6: this.ScreenMode = ((System.Windows.Controls.Image)(target)); #line 79 "..\..\UserControl1.xaml" this.ScreenMode.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.ScreenMode_MouseDown); #line default #line hidden return; case 7: this.ScreenMode_T1 = ((System.Windows.Controls.TextBlock)(target)); return; case 8: this.ScreenMode_T2 = ((System.Windows.Controls.TextBlock)(target)); return; case 9: this.ShowPanel = ((System.Windows.Controls.Grid)(target)); #line 90 "..\..\UserControl1.xaml" this.ShowPanel.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseDown); #line default #line hidden return; case 10: this.Arrow = ((System.Windows.Controls.Image)(target)); return; case 11: this.ScrollViewer = ((System.Windows.Controls.ScrollViewer)(target)); return; case 12: this.ViewImage = ((System.Windows.Controls.Image)(target)); #line 98 "..\..\UserControl1.xaml" this.ViewImage.MouseMove += new System.Windows.Input.MouseEventHandler(this.ViewImage_MouseMove); #line default #line hidden #line 98 "..\..\UserControl1.xaml" this.ViewImage.KeyDown += new System.Windows.Input.KeyEventHandler(this.ViewImage_KeyDown); #line default #line hidden #line 99 "..\..\UserControl1.xaml" this.ViewImage.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.ViewImage_MouseUp); #line default #line hidden #line 99 "..\..\UserControl1.xaml" this.ViewImage.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.ViewImage_MouseDown); #line default #line hidden #line 99 "..\..\UserControl1.xaml" this.ViewImage.KeyUp += new System.Windows.Input.KeyEventHandler(this.ViewImage_KeyUp); #line default #line hidden return; case 13: this.PanelScroll = ((System.Windows.Controls.ScrollViewer)(target)); return; case 14: this.ImgContainer = ((System.Windows.Controls.WrapPanel)(target)); return; } this._contentLoaded = true; }
public void SetContent(string label, bool useMnemonic, ImageDescription image, ContentPosition position) { var accessText = new SWC.AccessText (); accessText.Text = label; if (image.IsNull) if (useMnemonic) Button.Content = accessText; else Button.Content = accessText.Text.Replace ("_", "__"); else { SWC.DockPanel grid = new SWC.DockPanel (); var imageCtrl = new ImageBox (Context); imageCtrl.ImageSource = image; SWC.DockPanel.SetDock (imageCtrl, DataConverter.ToWpfDock (position)); grid.Children.Add (imageCtrl); if (!string.IsNullOrEmpty (label)) { SWC.Label labelCtrl = new SWC.Label (); if (useMnemonic) labelCtrl.Content = accessText; else labelCtrl.Content = label; labelCtrl.SetBinding (SWC.Label.ForegroundProperty, new Binding ("Foreground") { Source = Button }); grid.Children.Add (labelCtrl); } Button.Content = grid; } Button.InvalidateMeasure (); }