private void OpenImageClick(object sender, RoutedEventArgs e) { SelectImage image = (SelectImage)sender; switch (image.Name) { case "selectImgBreakTime": OpenImage(value => GlobalSettings.dataSettings.PathImgBreakTime = value); break; case "selectImgLongBreakTime": OpenImage(value => GlobalSettings.dataSettings.PathImgLongBreakTime = value); break; case "selectImgProfile": OpenImage(value => GlobalSettings.dataSettings.PathImgProfile = value); break; } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.element = ((Time_Owner.SelectImage)(target)); return; case 2: #line 19 "..\..\SelectImage.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 3: this.image = ((System.Windows.Controls.Image)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.textTimeOfWork = ((System.Windows.Controls.TextBox)(target)); #line 40 "..\..\Settings.xaml" this.textTimeOfWork.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.PreviewTextInputNumeric); #line default #line hidden return; case 2: this.textTimeOfRest = ((System.Windows.Controls.TextBox)(target)); #line 42 "..\..\Settings.xaml" this.textTimeOfRest.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.PreviewTextInputNumeric); #line default #line hidden return; case 3: this.textTimeOfLongRest = ((System.Windows.Controls.TextBox)(target)); #line 44 "..\..\Settings.xaml" this.textTimeOfLongRest.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.PreviewTextInputNumeric); #line default #line hidden return; case 4: this.checkBoxInfo = ((System.Windows.Controls.CheckBox)(target)); return; case 5: this.checkBoxRest = ((System.Windows.Controls.CheckBox)(target)); return; case 6: this.checkBoxProgressBar = ((System.Windows.Controls.CheckBox)(target)); return; case 7: this.selectImgBreakTime = ((Time_Owner.SelectImage)(target)); return; case 8: this.selectImgLongBreakTime = ((Time_Owner.SelectImage)(target)); return; case 9: this.selectImgProfile = ((Time_Owner.SelectImage)(target)); return; case 10: this.textTimeOfGettingTomato = ((System.Windows.Controls.TextBox)(target)); #line 58 "..\..\Settings.xaml" this.textTimeOfGettingTomato.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.PreviewTextInputNumeric); #line default #line hidden return; case 11: this.textMaximumTaskTime = ((System.Windows.Controls.TextBox)(target)); #line 60 "..\..\Settings.xaml" this.textMaximumTaskTime.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.PreviewTextInputNumeric); #line default #line hidden return; case 12: this.textPBWidth = ((System.Windows.Controls.TextBox)(target)); #line 62 "..\..\Settings.xaml" this.textPBWidth.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.PreviewTextInputNumeric); #line default #line hidden return; case 13: this.textPBHeight = ((System.Windows.Controls.TextBox)(target)); #line 64 "..\..\Settings.xaml" this.textPBHeight.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.PreviewTextInputNumeric); #line default #line hidden return; case 14: this.PART_CLOSE = ((System.Windows.Controls.Button)(target)); #line 67 "..\..\Settings.xaml" this.PART_CLOSE.Click += new System.Windows.RoutedEventHandler(this.CloseClick); #line default #line hidden return; case 15: this.border = ((System.Windows.Controls.Border)(target)); #line 81 "..\..\Settings.xaml" this.border.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.moveRectangle_PreviewMouseDown); #line default #line hidden return; } this._contentLoaded = true; }