public MainWindow() { InitializeComponent(); //Set Fonts from Windows System List<FontFamily> ListFonts = Fonts.SystemFontFamilies.ToList(); ListFonts.Sort((x, y) => string.Compare(x.Source, y.Source)); Cbx_Font.ItemsSource = ListFonts; //Set Color Picker Object MyPicker = new ColorPicker(); MyPicker.VerticalAlignment = System.Windows.VerticalAlignment.Top; MyPicker.Margin = new Thickness(45, 48, 0, 0); MyPicker.Width = 215; MyPicker.SelectedColorChanged += new RoutedPropertyChangedEventHandler<Color>(MyPicker_SelectedColorChanged); Grd_Titles.Children.Add(MyPicker); //Load App.config from TouchInfoPoint if(!LoadAppSettings()) { Lbl_Home.Content = "ERROR - [.Config] File not found"; return; } //Set Sliders Sld_Pos.Value = PerImgfromTop * 100; Sld_Width.Value = PerWidth * 100; Sld_Heigth.Value = PerHeight * 100; //Check Main Directoriy if (!Directory.Exists(DesignFolder)) { Lbl_Home.Content = "ERROR - [Design] Directory not found"; return; } //Search all Directories and load ComboBox string[] DirectoryPaths = Directory.GetDirectories(DesignFolder); //Remove the Path for (int x = 0; x < DirectoryPaths.Length; x++) { DirectoryPaths[x] = Tools.getNamefromPath(DirectoryPaths[x], false); Cbx_Skin.Items.Add(DirectoryPaths[x]); } Cbx_Skin.SelectedItem = SelSkin; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.txtWidth = ((System.Windows.Controls.TextBox)(target)); return; case 2: this.txtHeight = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.colorPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 4: this.chkPublic = ((System.Windows.Controls.CheckBox)(target)); return; case 5: this.txtAssetId = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.btnSelAsset = ((System.Windows.Controls.Button)(target)); return; case 7: this.cmbSwitch = ((System.Windows.Controls.ComboBox)(target)); #line 45 "..\..\..\Property\ControlPropertyStage.xaml" this.cmbSwitch.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cmbSwitch_SelectionChanged); #line default #line hidden return; case 8: this.chkAutoNext = ((System.Windows.Controls.CheckBox)(target)); #line 56 "..\..\..\Property\ControlPropertyStage.xaml" this.chkAutoNext.Checked += new System.Windows.RoutedEventHandler(this.CheckBox_Checked); #line default #line hidden return; case 9: this.chkIsVisable = ((System.Windows.Controls.CheckBox)(target)); #line 57 "..\..\..\Property\ControlPropertyStage.xaml" this.chkIsVisable.Checked += new System.Windows.RoutedEventHandler(this.chkIsVisable_Checked); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.TLstep1 = ((System.Windows.Controls.Label)(target)); return; case 2: this.SPid = ((System.Windows.Controls.StackPanel)(target)); return; case 3: this.TBid = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.SPcolour = ((System.Windows.Controls.StackPanel)(target)); return; case 5: this.ColorPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); #line 44 "..\..\..\TagView\CreateTagWindow.xaml" this.ColorPicker.Opened += new System.Windows.RoutedEventHandler(this.ColorPicker_Opened); #line default #line hidden return; case 6: this.ColorError = ((System.Windows.Controls.Label)(target)); return; case 7: this.TBDesc = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.CancelButton = ((System.Windows.Controls.Button)(target)); #line 52 "..\..\..\TagView\CreateTagWindow.xaml" this.CancelButton.Click += new System.Windows.RoutedEventHandler(this.CancelButton_Click); #line default #line hidden return; case 9: this.ConfirmButton = ((System.Windows.Controls.Button)(target)); #line 53 "..\..\..\TagView\CreateTagWindow.xaml" this.ConfirmButton.Click += new System.Windows.RoutedEventHandler(this.ConfirmButton_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.color1 = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 2: this.color2 = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 3: this.color3 = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 4: this.color4 = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 5: this.btnDialogOk = ((System.Windows.Controls.Button)(target)); #line 40 "..\..\ColorInputDialog.xaml" this.btnDialogOk.Click += new System.Windows.RoutedEventHandler(this.btnDialogOk_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.TextBlockOznaka = ((System.Windows.Controls.TextBox)(target)); return; case 2: this.ColorPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 3: this.TextBoxOpis = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.ButtonDodaj = ((System.Windows.Controls.Button)(target)); #line 45 "..\..\SekundarnaIzmenaEtikete.xaml" this.ButtonDodaj.Click += new System.Windows.RoutedEventHandler(this.IzmenaEtiketeClick); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 7 "..\..\ColorDialog.xaml" ((CellularAutomaton.ColorDialog)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown); #line default #line hidden return; case 2: this.ChooseButton = ((System.Windows.Controls.Button)(target)); #line 11 "..\..\ColorDialog.xaml" this.ChooseButton.Click += new System.Windows.RoutedEventHandler(this.btnOk_Click); #line default #line hidden return; case 3: this.colorPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.cpForeground = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 2: this.cpBackground = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 3: this.updBufferedRows = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target)); return; case 4: this.cbInfiniteBuffer = ((System.Windows.Controls.CheckBox)(target)); return; case 5: this.btnDone = ((System.Windows.Controls.Button)(target)); #line 49 "..\..\..\..\Ui\Windows\LoggingConsoleConfig.xaml" this.btnDone.Click += new System.Windows.RoutedEventHandler(this.btnDone_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.idEtikete = ((System.Windows.Controls.TextBox)(target)); return; case 2: this.opisEtikete = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.bojaEtikete = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 4: #line 62 "..\..\..\..\Izmena\IzmenaEtiketa.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 5: this.textBlock1 = ((System.Windows.Controls.TextBlock)(target)); return; case 6: this.textBlock2 = ((System.Windows.Controls.TextBlock)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.grid = ((System.Windows.Controls.Grid)(target)); return; case 2: this.txtItemCount1 = ((System.Windows.Controls.TextBox)(target)); #line 26 "..\..\..\Property\ControlPropertyTopicDrag.xaml" this.txtItemCount1.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txt_TextChanged); #line default #line hidden return; case 3: this.txtItemCount2 = ((System.Windows.Controls.TextBox)(target)); #line 28 "..\..\..\Property\ControlPropertyTopicDrag.xaml" this.txtItemCount2.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txt_TextChanged); #line default #line hidden return; case 4: this.txtScore = ((System.Windows.Controls.TextBox)(target)); #line 32 "..\..\..\Property\ControlPropertyTopicDrag.xaml" this.txtScore.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtScore_TextChanged); #line default #line hidden return; case 5: this.colorOtherFor = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 6: this.colorOtherBack = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 7: this.colorAnwerFor = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 8: this.colorAnwerBack = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 9: this.gridItem = ((System.Windows.Controls.Grid)(target)); return; } this._contentLoaded = true; }
public bool Create_Poscard() { try { int index = tabs.Items.Count; TabItem ti = new TabItem(); ti.Header = "Postcard " + (index + 1).ToString(); StackPanel stp = new StackPanel(); ti.Content = stp; tabs.Items.Add(ti); tabs.SelectedIndex = index; tabs.Items.MoveCurrentToLast(); Canvas canva = new Canvas(); canva.Width = tabs.ActualWidth; canva.Height = tabs.ActualHeight; canva.Background = new SolidColorBrush(Colors.MediumTurquoise); (ti.Content as StackPanel).Children.Add(canva); //Background Label l = new Label(); l.Content = "Background"; Background.Children.Add(l); Xceed.Wpf.Toolkit.ColorPicker cp = new Xceed.Wpf.Toolkit.ColorPicker(); cp.Height = 30; cp.Name = ti.Name; cp.ShowAdvancedButton = true; cp.SelectedColor = Colors.MediumTurquoise; cp.SelectedColorChanged += cp_SelectedColorChanged_Background; Background.Children.Add(cp); return(true); } catch (Exception) { return(false); } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.CanvasMain = ((System.Windows.Controls.Canvas)(target)); #line 14 "..\..\..\src\MainWindow.xaml" this.CanvasMain.Loaded += new System.Windows.RoutedEventHandler(this.CanvasMain_OnLoaded); #line default #line hidden return; case 2: this.IntegerUpDownRadius = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target)); return; case 3: this.ColorPickerColor = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 4: this.BotaoAddBola = ((System.Windows.Controls.Button)(target)); #line 24 "..\..\..\src\MainWindow.xaml" this.BotaoAddBola.Click += new System.Windows.RoutedEventHandler(this.BotaoAddBola_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Title_Text = ((System.Windows.Controls.TextBox)(target)); return; case 2: this.OrientationBox = ((System.Windows.Controls.ComboBox)(target)); return; case 3: this.ColorBox = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 4: this.FontSizeBox = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.ComboBoxStyle = ((System.Windows.Controls.ComboBox)(target)); #line 33 "..\..\TitleFormatWindow.xaml" this.ComboBoxStyle.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBoxStyle_SelectionChanged); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.oznakaBox = ((System.Windows.Controls.TextBox)(target)); return; case 2: this.opisBox = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.odabirBoje = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 4: #line 142 "..\..\..\OtherWindows\DodajEtiketuWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Dodaj); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 13 "..\..\Aml.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Apply); #line default #line hidden return; case 2: #line 14 "..\..\Aml.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Cancel); #line default #line hidden return; case 3: this.ColorPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 12 "..\..\..\LightingFolder\Spl.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Apply); #line default #line hidden return; case 2: #line 13 "..\..\..\LightingFolder\Spl.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Cancel); #line default #line hidden return; case 3: this.drlX = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.drlY = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.drlZ = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.ColorPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 7: this.drlXdir = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.drlYdir = ((System.Windows.Controls.TextBox)(target)); return; case 9: this.drlZdir = ((System.Windows.Controls.TextBox)(target)); return; case 10: this.outerAngle = ((System.Windows.Controls.TextBox)(target)); return; case 11: this.innerAngle = ((System.Windows.Controls.TextBox)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.TextBlockOznaka = ((System.Windows.Controls.TextBox)(target)); return; case 2: this.ColorPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); #line 24 "..\..\EtiketaWindow.xaml" this.ColorPicker.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler <System.Nullable <System.Windows.Media.Color> >(this.ColorChanged); #line default #line hidden return; case 3: this.TextBoxOpis = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.ButtonDodaj = ((System.Windows.Controls.Button)(target)); #line 45 "..\..\EtiketaWindow.xaml" this.ButtonDodaj.Click += new System.Windows.RoutedEventHandler(this.dodajEtiketuClick); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Label1 = ((System.Windows.Controls.Label)(target)); return; case 2: this.Кнопка = ((System.Windows.Controls.Button)(target)); #line 28 "..\..\MainWindow.xaml" this.Кнопка.Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 3: this.Colorpicker1 = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); #line 29 "..\..\MainWindow.xaml" this.Colorpicker1.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler <System.Nullable <System.Windows.Media.Color> >(this.ColorPicker_SelectedColorChanged); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.btnOK = ((System.Windows.Controls.Button)(target)); #line 9 "..\..\OptionsDialog.xaml" this.btnOK.Click += new System.Windows.RoutedEventHandler(this.btnOK_Click); #line default #line hidden return; case 2: this.btnCancel = ((System.Windows.Controls.Button)(target)); return; case 3: this.chbStartStopInSplitTimes = ((System.Windows.Controls.CheckBox)(target)); return; case 4: this.clpDisplayForegroundColor = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 5: this.clpDisplayBackgroundColor = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this._R = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target)); return; case 2: this._G = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target)); return; case 3: this._B = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target)); return; case 4: this._A = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target)); return; case 5: this._usingAlphaChannel = ((System.Windows.Controls.CheckBox)(target)); return; case 6: this._colorCanvas = ((Xceed.Wpf.Toolkit.ColorCanvas)(target)); return; case 7: this._colorPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 8 "..\..\..\..\Unos\UnosEtikete.xaml" ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CommandBinding_Executed_1); #line default #line hidden return; case 2: #line 9 "..\..\..\..\Unos\UnosEtikete.xaml" ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CommandBinding_CanExecute_10); #line default #line hidden #line 9 "..\..\..\..\Unos\UnosEtikete.xaml" ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CommandBinding_Executed_10); #line default #line hidden return; case 3: this.idEtikete = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.opisEtikete = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.bojaEtikete = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 6: #line 67 "..\..\..\..\Unos\UnosEtikete.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 7: this.textBlock1 = ((System.Windows.Controls.TextBlock)(target)); return; case 8: this.textBlock2 = ((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 "..\..\..\Utils\demoMod.xaml" ((System.Windows.Controls.Grid)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Grid_Loaded); #line default #line hidden return; case 2: this.Osnovno = ((System.Windows.Controls.GroupBox)(target)); return; case 3: this.IdTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.ColorPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); #line 22 "..\..\..\Utils\demoMod.xaml" this.ColorPicker.TouchEnter += new System.EventHandler <System.Windows.Input.TouchEventArgs>(this.Boja_Click); #line default #line hidden #line 22 "..\..\..\Utils\demoMod.xaml" this.ColorPicker.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.Boja_Click); #line default #line hidden return; case 5: this.OpisPolje = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.DodajDugme = ((System.Windows.Controls.Button)(target)); #line 38 "..\..\..\Utils\demoMod.xaml" this.DodajDugme.Click += new System.Windows.RoutedEventHandler(this.DodajDugme_Click); #line default #line hidden return; case 7: this.Odustani = ((System.Windows.Controls.Button)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this._modalBackgroundColorPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 2: this._childWindowCheckBox = ((System.Windows.Controls.CheckBox)(target)); return; case 3: this._modalChildWindowCheckBox = ((System.Windows.Controls.CheckBox)(target)); return; case 4: this._messageBoxCheckBox = ((System.Windows.Controls.CheckBox)(target)); #line 85 "..\..\..\..\..\..\Samples\Window\Views\WindowContainerView.xaml" this._messageBoxCheckBox.Checked += new System.Windows.RoutedEventHandler(this.OnMessageBoxCheckBoxChecked); #line default #line hidden #line 85 "..\..\..\..\..\..\Samples\Window\Views\WindowContainerView.xaml" this._messageBoxCheckBox.Unchecked += new System.Windows.RoutedEventHandler(this.OnMessageBoxCheckBoxUnchecked); #line default #line hidden return; case 5: this._windowContainer = ((Xceed.Wpf.Toolkit.Primitives.WindowContainer)(target)); return; case 6: this._childWindow = ((Xceed.Wpf.Toolkit.ChildWindow)(target)); return; case 7: this._modalChildWindow = ((Xceed.Wpf.Toolkit.ChildWindow)(target)); return; case 8: this._messageBox = ((Xceed.Wpf.Toolkit.MessageBox)(target)); #line 149 "..\..\..\..\..\..\Samples\Window\Views\WindowContainerView.xaml" this._messageBox.Closed += new System.EventHandler(this.OnMessageBoxClose); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.label = ((System.Windows.Controls.Label)(target)); return; case 2: this.label_Copy1 = ((System.Windows.Controls.Label)(target)); return; case 3: this.oznaka_textBox = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.textBox_Copy1 = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.sacuvaj = ((System.Windows.Controls.Button)(target)); #line 46 "..\..\..\..\Dijalozi\NovaEtiketa.xaml" this.sacuvaj.Click += new System.Windows.RoutedEventHandler(this.sacuvaj_Click); #line default #line hidden return; case 6: this.odustani = ((System.Windows.Controls.Button)(target)); #line 47 "..\..\..\..\Dijalozi\NovaEtiketa.xaml" this.odustani.Click += new System.Windows.RoutedEventHandler(this.odustani_Click); #line default #line hidden return; case 7: this.label_Copy2 = ((System.Windows.Controls.Label)(target)); return; case 8: this.ColorPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); #line 49 "..\..\..\..\Dijalozi\NovaEtiketa.xaml" this.ColorPicker.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler <System.Nullable <System.Windows.Media.Color> >(this.colorChanged); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.maxDropDownHeight = ((Xceed.Wpf.Toolkit.DoubleUpDown)(target)); return; case 2: this.dropDownPosition = ((System.Windows.Controls.ComboBox)(target)); return; case 3: this.dropDownContentBackground = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 4: this._dropDownButton = ((Xceed.Wpf.Toolkit.DropDownButton)(target)); #line 127 "..\..\..\..\..\..\Samples\Button\Views\DropDownSplitButtonView.xaml" this._dropDownButton.Click += new System.Windows.RoutedEventHandler(this.DropDownButton_Click); #line default #line hidden return; case 5: #line 131 "..\..\..\..\..\..\Samples\Button\Views\DropDownSplitButtonView.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 6: this._splitButton = ((Xceed.Wpf.Toolkit.SplitButton)(target)); #line 150 "..\..\..\..\..\..\Samples\Button\Views\DropDownSplitButtonView.xaml" this._splitButton.Click += new System.Windows.RoutedEventHandler(this.SplitButton_Click); #line default #line hidden return; case 7: #line 154 "..\..\..\..\..\..\Samples\Button\Views\DropDownSplitButtonView.xaml" ((System.Windows.Controls.Button)(target)).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.textBoxId = ((System.Windows.Controls.TextBox)(target)); #line 29 "..\..\AddTag.xaml" this.textBoxId.AddHandler(System.Windows.Controls.Validation.ErrorEvent, new System.EventHandler <System.Windows.Controls.ValidationErrorEventArgs>(this.textBoxId_Error)); #line default #line hidden #line 29 "..\..\AddTag.xaml" this.textBoxId.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.textBoxId_TextChanged); #line default #line hidden return; case 2: this.ColorPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); #line 57 "..\..\AddTag.xaml" this.ColorPicker.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler <System.Nullable <System.Windows.Media.Color> >(this.ColorPicker_SelectedColorChanged); #line default #line hidden return; case 3: this.textBoxDescription = ((System.Windows.Controls.TextBox)(target)); #line 60 "..\..\AddTag.xaml" this.textBoxDescription.AddHandler(System.Windows.Controls.Validation.ErrorEvent, new System.EventHandler <System.Windows.Controls.ValidationErrorEventArgs>(this.textBoxDescription_Error)); #line default #line hidden return; case 4: this.buttonSave = ((System.Windows.Controls.Button)(target)); #line 91 "..\..\AddTag.xaml" this.buttonSave.Click += new System.Windows.RoutedEventHandler(this.buttonSave_Click); #line default #line hidden return; case 5: this.buttonCancel = ((System.Windows.Controls.Button)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.label = ((System.Windows.Controls.Label)(target)); return; case 2: this.label1 = ((System.Windows.Controls.Label)(target)); return; case 3: this.label2 = ((System.Windows.Controls.Label)(target)); return; case 4: this.textBoxID = ((System.Windows.Controls.TextBox)(target)); #line 14 "..\..\DodajEtiketu.xaml" this.textBoxID.LostFocus += new System.Windows.RoutedEventHandler(this.textBoxID_LostFocus); #line default #line hidden return; case 5: this.textBoxOpis = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.ClrPcker_Background = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 7: this.button = ((System.Windows.Controls.Button)(target)); #line 18 "..\..\DodajEtiketu.xaml" this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click); #line default #line hidden return; case 8: this.button1 = ((System.Windows.Controls.Button)(target)); #line 19 "..\..\DodajEtiketu.xaml" this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ClrPcker_Background = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.FirstName = ((System.Windows.Controls.TextBox)(target)); return; case 2: this.LastName = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.ID = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.colorPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 5: #line 47 "..\..\..\EditProfessorDialog.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 6: this.FirstName_Required = ((System.Windows.Controls.StackPanel)(target)); return; case 7: this.LastName_Required = ((System.Windows.Controls.StackPanel)(target)); return; case 8: this.ID_Required = ((System.Windows.Controls.StackPanel)(target)); return; case 9: this.ID_Invalid = ((System.Windows.Controls.StackPanel)(target)); return; case 10: this.Color_Invalid = ((System.Windows.Controls.StackPanel)(target)); return; case 11: this.Color_Required = ((System.Windows.Controls.StackPanel)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.label1 = ((System.Windows.Controls.Label)(target)); return; case 2: this.label2 = ((System.Windows.Controls.Label)(target)); return; case 3: this.oznakaEtikete = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.label3 = ((System.Windows.Controls.Label)(target)); return; case 5: this.bojaEtikete = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 6: this.label4 = ((System.Windows.Controls.Label)(target)); return; case 7: this.opisEtikete = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.button1 = ((System.Windows.Controls.Button)(target)); #line 32 "..\..\..\..\UC\NovaEtiketaUserControl.xaml" this.button1.Click += new System.Windows.RoutedEventHandler(this.sacuvajEtiketu_Click); #line default #line hidden return; case 9: this.button2 = ((System.Windows.Controls.Button)(target)); #line 33 "..\..\..\..\UC\NovaEtiketaUserControl.xaml" this.button2.Click += new System.Windows.RoutedEventHandler(this.ponistiEtiketu_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 12 "..\..\WindowEtiketa.xaml" ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CommandBinding_Executed); #line default #line hidden return; case 2: this.ColorPickerPolje = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 3: this.xOznaka = ((System.Windows.Controls.TextBox)(target)); #line 36 "..\..\WindowEtiketa.xaml" this.xOznaka.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.xOznaka_TextChanged); #line default #line hidden return; case 4: this.opisPolje = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.PotvrdiEtiketaBtn = ((System.Windows.Controls.Button)(target)); #line 73 "..\..\WindowEtiketa.xaml" this.PotvrdiEtiketaBtn.Click += new System.Windows.RoutedEventHandler(this.Potvrdi_Click); #line default #line hidden return; case 6: this.OtkaziEtiketaBtn = ((System.Windows.Controls.Button)(target)); #line 74 "..\..\WindowEtiketa.xaml" this.OtkaziEtiketaBtn.Click += new System.Windows.RoutedEventHandler(this.Odustani_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Data = ((System.Windows.Controls.DataGrid)(target)); return; case 2: this.textBox = ((System.Windows.Controls.TextBox)(target)); #line 39 "..\..\TabelaEtiketa.xaml" this.textBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.textBox_TextChanged); #line default #line hidden return; case 3: this.label = ((System.Windows.Controls.Label)(target)); return; case 4: this.BOJA = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 5: this.label_Copy = ((System.Windows.Controls.Label)(target)); return; case 6: this.button = ((System.Windows.Controls.Button)(target)); #line 43 "..\..\TabelaEtiketa.xaml" this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click); #line default #line hidden return; case 7: this.button_Copy = ((System.Windows.Controls.Button)(target)); #line 44 "..\..\TabelaEtiketa.xaml" this.button_Copy.Click += new System.Windows.RoutedEventHandler(this.button_Copy_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.LblPlayer1 = ((System.Windows.Controls.Label)(target)); return; case 2: this.TxtPlayer1 = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.LblColor1 = ((System.Windows.Controls.Label)(target)); return; case 4: this.ClrPicker1 = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 5: this.CircleCanvas = ((System.Windows.Controls.Canvas)(target)); return; case 6: this.TriangleCanvas = ((System.Windows.Controls.Canvas)(target)); return; case 7: this.RectangleCanvas = ((System.Windows.Controls.Canvas)(target)); return; case 8: this.LblPlayer2 = ((System.Windows.Controls.Label)(target)); return; case 9: this.TxtPlayer2 = ((System.Windows.Controls.TextBox)(target)); return; case 10: this.LblColor2 = ((System.Windows.Controls.Label)(target)); return; case 11: this.ClrPicker2 = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 12: this.CircleCanvas2 = ((System.Windows.Controls.Canvas)(target)); return; case 13: this.TriangleCanvas2 = ((System.Windows.Controls.Canvas)(target)); return; case 14: this.RectangleCanvas3 = ((System.Windows.Controls.Canvas)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.settingWin = ((PSterminal.SettingsWindow)(target)); return; case 2: this.MainGrid = ((System.Windows.Controls.Grid)(target)); return; case 3: this.rbLightStyle = ((System.Windows.Controls.RadioButton)(target)); #line 55 "..\..\SettingsWindow.xaml" this.rbLightStyle.Checked += new System.Windows.RoutedEventHandler(this.rbLightStyle_Checked); #line default #line hidden return; case 4: this.rbDarkSide = ((System.Windows.Controls.RadioButton)(target)); #line 59 "..\..\SettingsWindow.xaml" this.rbDarkSide.Checked += new System.Windows.RoutedEventHandler(this.rbDarkSide_Checked); #line default #line hidden return; case 5: this.dtpCommnadHighlight = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); #line 75 "..\..\SettingsWindow.xaml" this.dtpCommnadHighlight.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Nullable<System.Windows.Media.Color>>(this.dtpCommnadHighlight_SelectedColorChanged); #line default #line hidden return; case 6: this.tbCommnad = ((System.Windows.Controls.RichTextBox)(target)); return; case 7: this.dtpParameterHighlight = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); #line 87 "..\..\SettingsWindow.xaml" this.dtpParameterHighlight.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Nullable<System.Windows.Media.Color>>(this.dtpParameterHighlight_SelectedColorChanged); #line default #line hidden return; case 8: this.tbParameter = ((System.Windows.Controls.RichTextBox)(target)); return; case 9: this.ScriptColor = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 10: this.OutputColor = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 11: this.FontSize = ((System.Windows.Controls.TextBox)(target)); return; case 12: this.FontColor = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); #line 118 "..\..\SettingsWindow.xaml" this.FontColor.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Nullable<System.Windows.Media.Color>>(this.FontColor_SelectedColorChanged); #line default #line hidden return; case 13: #line 121 "..\..\SettingsWindow.xaml" ((System.Windows.Controls.Button)(target)).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.ColorPicker1 = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this._window = ((Xceed.Wpf.Toolkit.RichTextBoxFormatBar)(target)); return; case 2: this._dragWidget = ((System.Windows.Controls.Primitives.Thumb)(target)); #line 371 "..\..\..\RichTextBoxFormatBar\RichTextBoxFormatBar.xaml" this._dragWidget.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.DragWidget_DragDelta); #line default #line hidden return; case 3: this._cmbFontFamilies = ((System.Windows.Controls.ComboBox)(target)); #line 378 "..\..\..\RichTextBoxFormatBar\RichTextBoxFormatBar.xaml" this._cmbFontFamilies.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.FontFamily_SelectionChanged); #line default #line hidden return; case 4: this._cmbFontSizes = ((System.Windows.Controls.ComboBox)(target)); #line 384 "..\..\..\RichTextBoxFormatBar\RichTextBoxFormatBar.xaml" this._cmbFontSizes.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.FontSize_SelectionChanged); #line default #line hidden return; case 5: this._btnBullets = ((System.Windows.Controls.Primitives.ToggleButton)(target)); #line 393 "..\..\..\RichTextBoxFormatBar\RichTextBoxFormatBar.xaml" this._btnBullets.Click += new System.Windows.RoutedEventHandler(this.Bullets_Clicked); #line default #line hidden return; case 6: this._btnNumbers = ((System.Windows.Controls.Primitives.ToggleButton)(target)); #line 402 "..\..\..\RichTextBoxFormatBar\RichTextBoxFormatBar.xaml" this._btnNumbers.Click += new System.Windows.RoutedEventHandler(this.Numbers_Clicked); #line default #line hidden return; case 7: this._btnBold = ((System.Windows.Controls.Primitives.ToggleButton)(target)); return; case 8: this._btnItalic = ((System.Windows.Controls.Primitives.ToggleButton)(target)); return; case 9: this._btnUnderline = ((System.Windows.Controls.Primitives.ToggleButton)(target)); return; case 10: this._btnAlignLeft = ((System.Windows.Controls.RadioButton)(target)); return; case 11: this._btnAlignCenter = ((System.Windows.Controls.RadioButton)(target)); return; case 12: this._btnAlignRight = ((System.Windows.Controls.RadioButton)(target)); return; case 13: this._cmbFontBackgroundColor = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 14: this._cmbFontColor = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 16 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.New_Click); #line default #line hidden return; case 2: #line 22 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Open_Click); #line default #line hidden return; case 3: #line 28 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.File_Save); #line default #line hidden return; case 4: #line 36 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit_Click); #line default #line hidden return; case 5: #line 45 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Clear_Click); #line default #line hidden return; case 6: #line 54 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.File_Picker); #line default #line hidden return; case 7: this.toolBar = ((System.Windows.Controls.ToolBar)(target)); return; case 8: this.ColorPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); #line 63 "..\..\MainWindow.xaml" this.ColorPicker.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Nullable<System.Windows.Media.Color>>(this.ColorPicker_SelectedColorChanged); #line default #line hidden return; case 9: this.IntegerUpDown = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target)); #line 66 "..\..\MainWindow.xaml" this.IntegerUpDown.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<object>(this.IntegerUpDown_ValueChanged); #line default #line hidden return; case 10: this.Pen = ((System.Windows.Controls.Primitives.ToggleButton)(target)); #line 69 "..\..\MainWindow.xaml" this.Pen.Checked += new System.Windows.RoutedEventHandler(this.Pen_Checked); #line default #line hidden #line 69 "..\..\MainWindow.xaml" this.Pen.Unchecked += new System.Windows.RoutedEventHandler(this.Pen_Unchecked); #line default #line hidden return; case 11: this.canvas = ((System.Windows.Controls.Canvas)(target)); #line 77 "..\..\MainWindow.xaml" this.canvas.MouseMove += new System.Windows.Input.MouseEventHandler(this.canvas_MouseMove); #line default #line hidden #line 77 "..\..\MainWindow.xaml" this.canvas.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.canvas_MouseDown); #line default #line hidden #line 77 "..\..\MainWindow.xaml" this.canvas.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.canvas_MouseUp); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.border = ((System.Windows.Controls.Border)(target)); return; case 2: this.tbExample = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.btFont = ((System.Windows.Controls.Button)(target)); #line 29 "..\..\SettingWindow.xaml" this.btFont.Click += new System.Windows.RoutedEventHandler(this.btFont_Click); #line default #line hidden return; case 4: this.colorPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 5: this.slWidth = ((System.Windows.Controls.Slider)(target)); return; case 6: this.slHeight = ((System.Windows.Controls.Slider)(target)); return; case 7: this.spAddress = ((System.Windows.Controls.StackPanel)(target)); return; case 8: this.cbIp = ((System.Windows.Controls.ComboBox)(target)); return; case 9: this.tbPort = ((System.Windows.Controls.TextBox)(target)); #line 86 "..\..\SettingWindow.xaml" this.tbPort.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.tbPort_TextChanged_1); #line default #line hidden return; case 10: this.tbHint = ((System.Windows.Controls.TextBlock)(target)); return; case 11: #line 95 "..\..\SettingWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; } this._contentLoaded = true; }
private static void ColorPickerPaste_Execute(ColorPicker colorPicker) { try { var strColor = Clipboard.GetText(); Color parsedColor; if (TryParseColor(strColor, out parsedColor)) colorPicker.SelectedColor = parsedColor; } catch (COMException) { // Ignore } }
// create editor void mytext_MouseDown(object sender, MouseButtonEventArgs e) { Edit.Children.Clear(); TextBox text = new TextBox(); Label l = new Label(); l.Content = "Text Editor"; text.TextChanged += text_TextChanged; text.Text = (sender as TextBlock).Text; text.Name = (sender as TextBlock).Name; Edit.Children.Add(l); Edit.Children.Add(text); Xceed.Wpf.Toolkit.ColorPicker cp = new Xceed.Wpf.Toolkit.ColorPicker(); cp.Height = 30; cp.DisplayColorAndName = true; cp.Name = (sender as TextBlock).Name; cp.ShowAdvancedButton = true; cp.SelectedColor = ((sender as TextBlock).Foreground as SolidColorBrush).Color; cp.SelectedColorChanged += cp_SelectedColorChanged; Edit.Children.Add(cp); System.Windows.Controls.Button newBtn = new Button(); newBtn.Content = "Changed Font"; newBtn.Name = (sender as TextBlock).Name; ; newBtn.Click += newBtn_Click; Edit.Children.Add(newBtn); Button b = new Button(); b.Content = "Delete"; b.Name = (sender as TextBlock).Name; b.Click += b_text_Click; Edit.Children.Add(b); mouseClick = e.GetPosition(null); canvasLeft = Canvas.GetLeft(((TextBlock)sender)); canvasTop = Canvas.GetTop(((TextBlock)sender)); ((TextBlock)sender).CaptureMouse(); }
public bool Create_Poscard() { try { int index = tabs.Items.Count; TabItem ti = new TabItem(); ti.Header = "Postcard " + (index + 1).ToString(); StackPanel stp = new StackPanel(); ti.Content = stp; tabs.Items.Add(ti); tabs.SelectedIndex = index; tabs.Items.MoveCurrentToLast(); Canvas canva = new Canvas(); canva.Width = tabs.ActualWidth; canva.Height = tabs.ActualHeight; canva.Background = new SolidColorBrush(Colors.MediumTurquoise); (ti.Content as StackPanel).Children.Add(canva); //Background Label l = new Label(); l.Content = "Background"; Background.Children.Add(l); Xceed.Wpf.Toolkit.ColorPicker cp = new Xceed.Wpf.Toolkit.ColorPicker(); cp.Height = 30; cp.Name = ti.Name; cp.ShowAdvancedButton = true; cp.SelectedColor = Colors.MediumTurquoise; cp.SelectedColorChanged += cp_SelectedColorChanged_Background; Background.Children.Add(cp); return true; } catch (Exception) { return false; } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 6 "..\..\..\Views\ViewSettings.xaml" ((SimplePhotoPost.Views.ViewSettings)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing); #line default #line hidden return; case 2: this.Title1 = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.Message = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.HashTags = ((System.Windows.Controls.TextBox)(target)); return; case 5: #line 74 "..\..\..\Views\ViewSettings.xaml" ((System.Windows.Controls.Image)(target)).MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.OpenFolder); #line default #line hidden return; case 6: this.Rectangle2 = ((System.Windows.Shapes.Rectangle)(target)); return; case 7: this.Path = ((System.Windows.Controls.TextBlock)(target)); #line 78 "..\..\..\Views\ViewSettings.xaml" this.Path.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.OpenFolder); #line default #line hidden return; case 8: this.GroupId = ((System.Windows.Controls.TextBox)(target)); return; case 9: this.AlbumId = ((System.Windows.Controls.TextBox)(target)); return; case 10: this.Color = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); #line 122 "..\..\..\Views\ViewSettings.xaml" this.Color.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Nullable<System.Windows.Media.Color>>(this.Color_SelectedColorChanged); #line default #line hidden return; case 11: #line 136 "..\..\..\Views\ViewSettings.xaml" ((System.Windows.Controls.TextBlock)(target)).MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.SaveAndExit); #line default #line hidden return; case 12: this.Rectangle1 = ((System.Windows.Shapes.Rectangle)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Paint = ((Paint.MainWindow)(target)); #line 5 "..\..\MainWindow.xaml" this.Paint.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Paint_MouseLeave); #line default #line hidden #line 5 "..\..\MainWindow.xaml" this.Paint.Loaded += new System.Windows.RoutedEventHandler(this.Paint_Loaded); #line default #line hidden return; case 2: this.Select = ((System.Windows.Controls.Primitives.ToggleButton)(target)); #line 9 "..\..\MainWindow.xaml" this.Select.Checked += new System.Windows.RoutedEventHandler(this.Select_Checked); #line default #line hidden #line 9 "..\..\MainWindow.xaml" this.Select.Unchecked += new System.Windows.RoutedEventHandler(this.Select_Unchecked); #line default #line hidden return; case 3: this.radioLine = ((System.Windows.Controls.RadioButton)(target)); #line 13 "..\..\MainWindow.xaml" this.radioLine.Checked += new System.Windows.RoutedEventHandler(this.radioLine_Checked); #line default #line hidden return; case 4: this.radioRectangle = ((System.Windows.Controls.RadioButton)(target)); #line 14 "..\..\MainWindow.xaml" this.radioRectangle.Checked += new System.Windows.RoutedEventHandler(this.radioRectangle_Checked); #line default #line hidden return; case 5: this.radioEllipse = ((System.Windows.Controls.RadioButton)(target)); #line 15 "..\..\MainWindow.xaml" this.radioEllipse.Checked += new System.Windows.RoutedEventHandler(this.radioEllipse_Checked); #line default #line hidden return; case 6: this.SizeBox = ((System.Windows.Controls.ComboBox)(target)); #line 21 "..\..\MainWindow.xaml" this.SizeBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.SizeBox_SelectionChanged); #line default #line hidden return; case 7: this.ClrPcker_Background = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); #line 30 "..\..\MainWindow.xaml" this.ClrPcker_Background.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Nullable<System.Windows.Media.Color>>(this.ClrPcker_Background_SelectedColorChanged); #line default #line hidden return; case 8: this.FillColorPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); #line 37 "..\..\MainWindow.xaml" this.FillColorPicker.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Nullable<System.Windows.Media.Color>>(this.FillColorPicker_SelectedColorChanged); #line default #line hidden return; case 9: this.dashStyle = ((System.Windows.Controls.ComboBox)(target)); #line 43 "..\..\MainWindow.xaml" this.dashStyle.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dashStyle_SelectionChanged); #line default #line hidden return; case 10: this.cmbItemSolid1 = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 11: this.cmbItemDash1 = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 12: this.cmbItemDashDot1 = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 13: this.DrawCanvas = ((System.Windows.Controls.Canvas)(target)); #line 109 "..\..\MainWindow.xaml" this.DrawCanvas.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.DrawCanvas_PreviewMouseLeftButtonDown); #line default #line hidden #line 110 "..\..\MainWindow.xaml" this.DrawCanvas.PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.DrawCanvas_PreviewMouseLeftButtonUp); #line default #line hidden #line 111 "..\..\MainWindow.xaml" this.DrawCanvas.MouseMove += new System.Windows.Input.MouseEventHandler(this.DrawCanvas_MouseMove); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 6 "..\..\MainWindow.xaml" ((GraphicEditor.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.wrapGrid = ((System.Windows.Controls.Grid)(target)); return; case 3: this.drawCanvas = ((System.Windows.Controls.InkCanvas)(target)); return; case 4: this.openFile = ((System.Windows.Controls.MenuItem)(target)); return; case 5: this.saveFile = ((System.Windows.Controls.MenuItem)(target)); return; case 6: this.exit = ((System.Windows.Controls.MenuItem)(target)); return; case 7: this.colorInvert = ((System.Windows.Controls.MenuItem)(target)); return; case 8: this.horizontal = ((System.Windows.Controls.MenuItem)(target)); return; case 9: this.vertical = ((System.Windows.Controls.MenuItem)(target)); return; case 10: this.rotation90 = ((System.Windows.Controls.MenuItem)(target)); return; case 11: this.rotation180 = ((System.Windows.Controls.MenuItem)(target)); return; case 12: this.penColor = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 13: this.brushColor = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 14: this.buttonGrid = ((System.Windows.Controls.Grid)(target)); return; case 15: this.free = ((System.Windows.Controls.Button)(target)); #line 52 "..\..\MainWindow.xaml" this.free.Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 16: this.line = ((System.Windows.Controls.Button)(target)); #line 53 "..\..\MainWindow.xaml" this.line.Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 17: this.rect = ((System.Windows.Controls.Button)(target)); #line 54 "..\..\MainWindow.xaml" this.rect.Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 18: this.circle = ((System.Windows.Controls.Button)(target)); #line 55 "..\..\MainWindow.xaml" this.circle.Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 19: this.selection = ((System.Windows.Controls.Button)(target)); #line 56 "..\..\MainWindow.xaml" this.selection.Click += new System.Windows.RoutedEventHandler(this.selection_Click); #line default #line hidden return; case 20: this.eraser = ((System.Windows.Controls.Button)(target)); #line 57 "..\..\MainWindow.xaml" this.eraser.Click += new System.Windows.RoutedEventHandler(this.eraser_Click); #line default #line hidden return; case 21: this.thicknessSlider = ((System.Windows.Controls.Slider)(target)); return; case 22: this.inputThickness = ((System.Windows.Controls.TextBox)(target)); return; case 23: this.statusBar = ((System.Windows.Controls.ProgressBar)(target)); return; case 24: this.backgroundColor = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); #line 67 "..\..\MainWindow.xaml" this.backgroundColor.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Nullable<System.Windows.Media.Color>>(this.backgroundColor_SelectedColorChanged); #line default #line hidden return; case 25: this.cleaner = ((System.Windows.Controls.Button)(target)); #line 68 "..\..\MainWindow.xaml" this.cleaner.Click += new System.Windows.RoutedEventHandler(this.cleaner_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 "..\..\PolarGraphWindow - Copy.xaml" ((IMPressive.PolarGraphWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden #line 6 "..\..\PolarGraphWindow - Copy.xaml" ((IMPressive.PolarGraphWindow)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.Window_SizeChanged); #line default #line hidden return; case 2: this.chartCanvas = ((System.Windows.Controls.Canvas)(target)); #line 38 "..\..\PolarGraphWindow - Copy.xaml" this.chartCanvas.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.chartCanvas_MouseWheel); #line default #line hidden return; case 3: this.st = ((System.Windows.Media.ScaleTransform)(target)); return; case 4: this.btnLoad = ((System.Windows.Controls.Button)(target)); #line 45 "..\..\PolarGraphWindow - Copy.xaml" this.btnLoad.Click += new System.Windows.RoutedEventHandler(this.btnLoad_Click); #line default #line hidden return; case 5: this.txtOperation = ((System.Windows.Controls.AutoCompleteBox)(target)); #line 47 "..\..\PolarGraphWindow - Copy.xaml" this.txtOperation.KeyUp += new System.Windows.Input.KeyEventHandler(this.txtOperation_KeyUp); #line default #line hidden #line 47 "..\..\PolarGraphWindow - Copy.xaml" this.txtOperation.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.txtOperation_SelectionChanged); #line default #line hidden #line 47 "..\..\PolarGraphWindow - Copy.xaml" this.txtOperation.DropDownClosed += new System.Windows.RoutedPropertyChangedEventHandler<bool>(this.txtOperation_DropDownClosed); #line default #line hidden return; case 6: this.btnClear = ((System.Windows.Controls.Button)(target)); #line 57 "..\..\PolarGraphWindow - Copy.xaml" this.btnClear.Click += new System.Windows.RoutedEventHandler(this.btnClear_Click); #line default #line hidden return; case 7: this.bg2 = ((System.Windows.Controls.Border)(target)); return; case 8: this.cpxColor = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 9: this.txtFromX = ((System.Windows.Controls.TextBox)(target)); #line 74 "..\..\PolarGraphWindow - Copy.xaml" this.txtFromX.KeyUp += new System.Windows.Input.KeyEventHandler(this.txtOperation_KeyUp); #line default #line hidden return; case 10: this.txtToX = ((System.Windows.Controls.TextBox)(target)); #line 84 "..\..\PolarGraphWindow - Copy.xaml" this.txtToX.KeyUp += new System.Windows.Input.KeyEventHandler(this.txtOperation_KeyUp); #line default #line hidden return; case 11: this.txtPasX = ((System.Windows.Controls.TextBox)(target)); #line 94 "..\..\PolarGraphWindow - Copy.xaml" this.txtPasX.KeyUp += new System.Windows.Input.KeyEventHandler(this.txtOperation_KeyUp); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 6 "..\..\..\DocumentEditor.xaml" ((DocumentEditorTestApp.DocumentEditor)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded); #line default #line hidden return; case 2: this.toolbarButtons = ((System.Windows.Controls.ToolBar)(target)); return; case 3: this.btnPaste = ((System.Windows.Controls.Button)(target)); return; case 4: this.btnCopy = ((System.Windows.Controls.Button)(target)); return; case 5: this.btnCut = ((System.Windows.Controls.Button)(target)); return; case 6: this.btnDelete = ((System.Windows.Controls.Button)(target)); return; case 7: this.btnUndo = ((System.Windows.Controls.Button)(target)); return; case 8: this.btnRedo = ((System.Windows.Controls.Button)(target)); return; case 9: this.btnBold = ((System.Windows.Controls.Primitives.ToggleButton)(target)); return; case 10: this.btnItalic = ((System.Windows.Controls.Primitives.ToggleButton)(target)); return; case 11: this.btnUnderline = ((System.Windows.Controls.Primitives.ToggleButton)(target)); return; case 12: this.comboFontFamily = ((System.Windows.Controls.ComboBox)(target)); #line 57 "..\..\..\DocumentEditor.xaml" this.comboFontFamily.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.comboFontFamily_SelectionChanged); #line default #line hidden return; case 13: this.comboFontSize = ((System.Windows.Controls.ComboBox)(target)); #line 59 "..\..\..\DocumentEditor.xaml" this.comboFontSize.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.comboFontSize_SelectionChanged); #line default #line hidden return; case 14: this.colorPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); #line 61 "..\..\..\DocumentEditor.xaml" this.colorPicker.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Windows.Media.Color>(this.colorPicker_SelectedColorChanged); #line default #line hidden return; case 15: this.btnLeftAlign = ((System.Windows.Controls.Primitives.ToggleButton)(target)); return; case 16: this.btnCenterAlign = ((System.Windows.Controls.Primitives.ToggleButton)(target)); return; case 17: this.btnRightAlign = ((System.Windows.Controls.Primitives.ToggleButton)(target)); return; case 18: this.btnJustifyAlign = ((System.Windows.Controls.Primitives.ToggleButton)(target)); return; case 19: this.btnBullets = ((System.Windows.Controls.Primitives.ToggleButton)(target)); return; case 20: this.btnNumbering = ((System.Windows.Controls.Primitives.ToggleButton)(target)); return; case 21: this.btnSuperscript = ((System.Windows.Controls.Primitives.ToggleButton)(target)); #line 93 "..\..\..\DocumentEditor.xaml" this.btnSuperscript.Click += new System.Windows.RoutedEventHandler(this.btnSuperscript_Click); #line default #line hidden return; case 22: this.btnSubscript = ((System.Windows.Controls.Primitives.ToggleButton)(target)); #line 97 "..\..\..\DocumentEditor.xaml" this.btnSubscript.Click += new System.Windows.RoutedEventHandler(this.btnSubscript_Click); #line default #line hidden return; case 23: this.btnIncreaseIndent = ((System.Windows.Controls.Button)(target)); #line 101 "..\..\..\DocumentEditor.xaml" this.btnIncreaseIndent.Click += new System.Windows.RoutedEventHandler(this.btnIncreaseIndent_Click); #line default #line hidden return; case 24: this.btnDecreaseIndent = ((System.Windows.Controls.Button)(target)); #line 105 "..\..\..\DocumentEditor.xaml" this.btnDecreaseIndent.Click += new System.Windows.RoutedEventHandler(this.btnDecreaseIndent_Click); #line default #line hidden return; case 25: this.rtbDocument = ((System.Windows.Controls.RichTextBox)(target)); #line 115 "..\..\..\DocumentEditor.xaml" this.rtbDocument.SelectionChanged += new System.Windows.RoutedEventHandler(this.rtbDocument_SelectionChanged); #line default #line hidden return; } this._contentLoaded = true; }
private static bool ColorPickerPaste_CanExecute(ColorPicker obj) { try { var strColor = Clipboard.GetText(); return CanParseColor(strColor); } catch (COMException) { return false; } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.grdFont = ((System.Windows.Controls.Grid)(target)); return; case 2: this.Font = ((System.Windows.Controls.RowDefinition)(target)); return; case 3: this.FontSize = ((System.Windows.Controls.RowDefinition)(target)); return; case 4: this.FontColor = ((System.Windows.Controls.RowDefinition)(target)); return; case 5: this.FontOutline = ((System.Windows.Controls.RowDefinition)(target)); return; case 6: this.lblFamily = ((System.Windows.Controls.Label)(target)); return; case 7: this.cbFamily = ((System.Windows.Controls.ComboBox)(target)); return; case 8: this.lblSize = ((System.Windows.Controls.Label)(target)); return; case 9: this.udSize = ((Xceed.Wpf.Toolkit.DoubleUpDown)(target)); return; case 10: this.lblColor = ((System.Windows.Controls.Label)(target)); return; case 11: this.cpColor = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 12: this.cpOutlineColor = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 13: this.lblOutlineColor = ((System.Windows.Controls.Label)(target)); return; case 14: this.grdSync = ((System.Windows.Controls.Grid)(target)); return; case 15: this.Markings = ((System.Windows.Controls.RowDefinition)(target)); return; case 16: this.TrackStart = ((System.Windows.Controls.RowDefinition)(target)); return; case 17: this.VideoStart = ((System.Windows.Controls.RowDefinition)(target)); return; case 18: this.Timezone = ((System.Windows.Controls.RowDefinition)(target)); return; case 19: this.udVideoHours = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target)); return; case 20: this.udVideoMinutes = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target)); return; case 21: this.udVideoSeconds = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target)); return; case 22: this.lblVideo = ((System.Windows.Controls.Label)(target)); return; case 23: this.udTrackHours = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target)); return; case 24: this.udTrackMinutes = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target)); return; case 25: this.udTrackSeconds = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target)); return; case 26: this.lbTrack = ((System.Windows.Controls.Label)(target)); return; case 27: this.lblHours = ((System.Windows.Controls.Label)(target)); return; case 28: this.lblMinutes = ((System.Windows.Controls.Label)(target)); return; case 29: this.lblSeconds = ((System.Windows.Controls.Label)(target)); return; case 30: this.udVideoHours_Copy = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target)); return; case 31: this.udVideoMinutes_Copy = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target)); return; case 32: this.udVideoSeconds_Copy = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target)); return; case 33: this.lblVideo_Copy = ((System.Windows.Controls.Label)(target)); return; case 34: this.grdVideo = ((System.Windows.Controls.Grid)(target)); return; case 35: this.lblEncoding = ((System.Windows.Controls.Label)(target)); return; case 36: this.lblOutputName = ((System.Windows.Controls.Label)(target)); return; case 37: this.lblEnableMap = ((System.Windows.Controls.Label)(target)); return; case 38: this.lblEnableDistance = ((System.Windows.Controls.Label)(target)); return; case 39: this.lblEnableSpeed = ((System.Windows.Controls.Label)(target)); return; case 40: this.lblVisualizations = ((System.Windows.Controls.Label)(target)); return; case 41: this.cbMap = ((System.Windows.Controls.CheckBox)(target)); return; case 42: this.cbDistance = ((System.Windows.Controls.CheckBox)(target)); return; case 43: this.cbSpeed = ((System.Windows.Controls.CheckBox)(target)); return; case 44: this.cmbEncoding = ((System.Windows.Controls.ComboBox)(target)); return; case 45: this.tbOutputName = ((System.Windows.Controls.TextBox)(target)); return; case 46: this.grdAdvanced = ((System.Windows.Controls.Grid)(target)); return; case 47: this.grdControlButtons = ((System.Windows.Controls.Grid)(target)); return; case 48: this.btnFont = ((System.Windows.Controls.Button)(target)); #line 85 "..\..\Settings.xaml" this.btnFont.Click += new System.Windows.RoutedEventHandler(this.btnFont_Click); #line default #line hidden #line 85 "..\..\Settings.xaml" this.btnFont.MouseEnter += new System.Windows.Input.MouseEventHandler(this.btnFont_MouseEnter); #line default #line hidden #line 85 "..\..\Settings.xaml" this.btnFont.MouseLeave += new System.Windows.Input.MouseEventHandler(this.btnFont_MouseLeave); #line default #line hidden return; case 49: this.btnVideo = ((System.Windows.Controls.Button)(target)); #line 90 "..\..\Settings.xaml" this.btnVideo.Click += new System.Windows.RoutedEventHandler(this.btnVideo_Click); #line default #line hidden #line 90 "..\..\Settings.xaml" this.btnVideo.MouseEnter += new System.Windows.Input.MouseEventHandler(this.btnVideo_MouseEnter); #line default #line hidden #line 90 "..\..\Settings.xaml" this.btnVideo.MouseLeave += new System.Windows.Input.MouseEventHandler(this.btnVideo_MouseLeave); #line default #line hidden return; case 50: this.btnSync = ((System.Windows.Controls.Button)(target)); #line 95 "..\..\Settings.xaml" this.btnSync.Click += new System.Windows.RoutedEventHandler(this.btnSync_Click); #line default #line hidden #line 95 "..\..\Settings.xaml" this.btnSync.MouseEnter += new System.Windows.Input.MouseEventHandler(this.btnSync_MouseEnter); #line default #line hidden #line 95 "..\..\Settings.xaml" this.btnSync.MouseLeave += new System.Windows.Input.MouseEventHandler(this.btnSync_MouseLeave); #line default #line hidden return; case 51: this.btnAdvanced = ((System.Windows.Controls.Button)(target)); #line 100 "..\..\Settings.xaml" this.btnAdvanced.Click += new System.Windows.RoutedEventHandler(this.btnAdvanced_Click); #line default #line hidden #line 100 "..\..\Settings.xaml" this.btnAdvanced.MouseEnter += new System.Windows.Input.MouseEventHandler(this.btnAdvanced_MouseEnter); #line default #line hidden #line 100 "..\..\Settings.xaml" this.btnAdvanced.MouseLeave += new System.Windows.Input.MouseEventHandler(this.btnAdvanced_MouseLeave); #line default #line hidden return; case 52: this.btnProceed = ((System.Windows.Controls.Button)(target)); #line 106 "..\..\Settings.xaml" this.btnProceed.Click += new System.Windows.RoutedEventHandler(this.btnProceed_Click); #line default #line hidden return; } this._contentLoaded = true; }
private static void ColorPickerCopy_Execute(ColorPicker colorPicker) { try { if (!colorPicker.SelectedColor.HasValue) return; var c = colorPicker.SelectedColor.Value; var str = c.ToString(); Clipboard.SetText(str); } catch (COMException) { // Ignore } }
public ParametrePanel(string id, dynamic value, Tumblr t, UIElement loading) { Orientation = Orientation.Horizontal; Margin = new Thickness(0, 2, 0, 2); Height = 25; ID = id; Value = value; dynamic val = null; if (id.StartsWith("text")) { val = new TextBox { Text = value }; ((TextBox)val).TextChanged += delegate { Value = val.Text; }; } else if (id.StartsWith("font")) { val = new TextBox { Text = value }; ((TextBox)val).TextChanged += delegate { Value = val.Text; }; } else if (id.StartsWith("image")) { val = new StackPanel { Orientation = Orientation.Horizontal }; var buttonUpload = new Button { Content = "Upload", FontSize = 12, Background = (SolidColorBrush)Application.Current.FindResource("ColorButtonGrey") }; var buttonShow = new Button { Content = "Show", Margin = new Thickness(0, 0, 2, 0), FontSize = 12, Background = (SolidColorBrush)Application.Current.FindResource("ColorButtonGrey"), Visibility = CheckUrlValid((string)Value) ? Visibility.Visible : Visibility.Collapsed }; buttonShow.Click += delegate { Process.Start((string)Value); }; var buttonRemove = new Button { Content = "X", Margin = new Thickness(2, 0, 0, 0), FontSize = 12, Background = (SolidColorBrush)Application.Current.FindResource("ColorButtonGrey"), Visibility = CheckUrlValid((string)Value) ? Visibility.Visible : Visibility.Collapsed }; buttonRemove.Click += delegate { Value = ""; buttonShow.Visibility = Visibility.Collapsed; buttonRemove.Visibility = Visibility.Collapsed; buttonUpload.Background = (SolidColorBrush)Application.Current.FindResource("ColorButtonGrey"); buttonUpload.Content = "Upload"; }; buttonUpload.Click += async (s, e) => { var ofp = new OpenFileDialog(); loading.Visibility = Visibility.Visible; ofp.Filter = "Image Files|*.jpg;*.jpeg;*.png;*.gif;"; ofp.Title = "Image Select"; var showDialog = ofp.ShowDialog(); if (showDialog.HasValue && showDialog.Value) { await Task.Factory.StartNew(() => { Value = Newtonsoft.Json.JsonConvert.DeserializeObject<ImageContent>(t.restClient.Post(new RestRequest("svc/post/upload_photo").AddHeader("x-tumblr-form-key", t.Cav.UserFormKey).AddFile("photo", ofp.FileName)).Content).Response[0].Url; }); buttonUpload.Background = (SolidColorBrush)Application.Current.FindResource("ColorButtonGreen"); buttonUpload.Content = "Uploaded"; buttonShow.Visibility = Visibility.Visible; buttonRemove.Visibility = Visibility.Visible; } loading.Visibility = Visibility.Collapsed; }; val.Children.Add(buttonShow); val.Children.Add(buttonUpload); val.Children.Add(buttonRemove); } else if (id.StartsWith("color")) { val = new ColorPicker { SelectedColor = FromHex(value), ColorMode = ColorMode.ColorCanvas }; ((ColorPicker)val).SelectedColorChanged += delegate { Value = FromColor(val.SelectedColor); }; } else if (id.StartsWith("if")) { val = new CheckBox { IsChecked = CheckBool(value), VerticalAlignment = VerticalAlignment.Center }; ((CheckBox)val).Checked += delegate { Value = val.IsChecked ? "1" : "0"; }; } else if (id.StartsWith("select")) { val = new ComboBox { DisplayMemberPath = "[1]" }; ((ComboBox)val).SelectionChanged += delegate { Value = val.SelectedItem[0]; }; foreach (dynamic selectparam in value) { val.Items.Add(new object[] { selectparam.Name, selectparam.Value.Value }); } val.SelectedIndex = 0; } var settingName = id.Split(':')[1]; var label = new TextBlock { Text = settingName, ToolTip = settingName, VerticalAlignment = VerticalAlignment.Center, Width = 110, TextTrimming = TextTrimming.CharacterEllipsis, Foreground = new SolidColorBrush(Colors.White), FontFamily = new FontFamily("Arial"), FontSize = 12, FontWeight = FontWeight.FromOpenTypeWeight(300) }; Children.Add(label); val.Width = 150; Children.Add(val); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 6 "..\..\MainWindow.xaml" ((WpfApplication1.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.MainWindow_KeyDown); #line default #line hidden #line 7 "..\..\MainWindow.xaml" ((WpfApplication1.MainWindow)(target)).KeyUp += new System.Windows.Input.KeyEventHandler(this.MainWindow_KeyUp); #line default #line hidden return; case 2: this.zoomLabel = ((System.Windows.Controls.Label)(target)); return; case 3: #line 67 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.resetZoomClick); #line default #line hidden return; case 4: this.levelCanvasScrollViewer = ((System.Windows.Controls.ScrollViewer)(target)); return; case 5: this.levelCanvas = ((System.Windows.Controls.Canvas)(target)); #line 79 "..\..\MainWindow.xaml" this.levelCanvas.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.canvas_MouseLeftButtonDown); #line default #line hidden #line 80 "..\..\MainWindow.xaml" this.levelCanvas.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.canvas_MouseLeftButtonUp); #line default #line hidden #line 81 "..\..\MainWindow.xaml" this.levelCanvas.MouseMove += new System.Windows.Input.MouseEventHandler(this.canvas_MouseMove); #line default #line hidden #line 82 "..\..\MainWindow.xaml" this.levelCanvas.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.levelCanvas_MouseWheel); #line default #line hidden return; case 6: this.square = ((System.Windows.Controls.RadioButton)(target)); #line 109 "..\..\MainWindow.xaml" this.square.Checked += new System.Windows.RoutedEventHandler(this.primitives_Checked); #line default #line hidden return; case 7: this.circle = ((System.Windows.Controls.RadioButton)(target)); #line 113 "..\..\MainWindow.xaml" this.circle.Checked += new System.Windows.RoutedEventHandler(this.primitives_Checked); #line default #line hidden return; case 8: this.triangle = ((System.Windows.Controls.RadioButton)(target)); #line 117 "..\..\MainWindow.xaml" this.triangle.Checked += new System.Windows.RoutedEventHandler(this.primitives_Checked); #line default #line hidden return; case 9: this.polygon = ((System.Windows.Controls.RadioButton)(target)); #line 121 "..\..\MainWindow.xaml" this.polygon.Checked += new System.Windows.RoutedEventHandler(this.primitives_Checked); #line default #line hidden return; case 10: this.freeform = ((System.Windows.Controls.RadioButton)(target)); #line 125 "..\..\MainWindow.xaml" this.freeform.Checked += new System.Windows.RoutedEventHandler(this.primitives_Checked); #line default #line hidden return; case 11: this.line = ((System.Windows.Controls.RadioButton)(target)); #line 129 "..\..\MainWindow.xaml" this.line.Checked += new System.Windows.RoutedEventHandler(this.primitives_Checked); #line default #line hidden return; case 12: this.freeform_line = ((System.Windows.Controls.RadioButton)(target)); #line 133 "..\..\MainWindow.xaml" this.freeform_line.Checked += new System.Windows.RoutedEventHandler(this.primitives_Checked); #line default #line hidden return; case 13: this.text = ((System.Windows.Controls.RadioButton)(target)); #line 137 "..\..\MainWindow.xaml" this.text.Checked += new System.Windows.RoutedEventHandler(this.primitives_Checked); #line default #line hidden return; case 14: this.fillColorSelect = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); #line 157 "..\..\MainWindow.xaml" this.fillColorSelect.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Nullable<System.Windows.Media.Color>>(this.FillColorChanged); #line default #line hidden return; case 15: this.lineColorSelect = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); #line 159 "..\..\MainWindow.xaml" this.lineColorSelect.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Nullable<System.Windows.Media.Color>>(this.LineColorChanged); #line default #line hidden return; case 16: this.lineThickness = ((System.Windows.Controls.ComboBox)(target)); #line 161 "..\..\MainWindow.xaml" this.lineThickness.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lineThickness_SelectionChanged); #line default #line hidden return; case 17: this.thick1 = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 18: this.thick2 = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 19: this.thick3 = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 20: this.thick4 = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 21: this.thick5 = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 22: this.thick6 = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 23: this.thick7 = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 24: this.selectionX = ((System.Windows.Controls.TextBox)(target)); #line 171 "..\..\MainWindow.xaml" this.selectionX.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.selectionX_TextChanged); #line default #line hidden return; case 25: this.selectionY = ((System.Windows.Controls.TextBox)(target)); #line 173 "..\..\MainWindow.xaml" this.selectionY.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.selectionY_TextChanged); #line default #line hidden return; case 26: this.selectionWidth = ((System.Windows.Controls.TextBox)(target)); #line 175 "..\..\MainWindow.xaml" this.selectionWidth.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.selectionWidth_TextChanged); #line default #line hidden return; case 27: this.selectionHeight = ((System.Windows.Controls.TextBox)(target)); #line 177 "..\..\MainWindow.xaml" this.selectionHeight.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.selectionHeight_TextChanged); #line default #line hidden return; case 28: this.lockAspectCheckbox = ((System.Windows.Controls.CheckBox)(target)); #line 179 "..\..\MainWindow.xaml" this.lockAspectCheckbox.Checked += new System.Windows.RoutedEventHandler(this.lockAspectCheckbox_Checked); #line default #line hidden #line 179 "..\..\MainWindow.xaml" this.lockAspectCheckbox.Unchecked += new System.Windows.RoutedEventHandler(this.lockAspectCheckbox_Unchecked); #line default #line hidden return; case 29: this.selectionRotation = ((System.Windows.Controls.TextBox)(target)); #line 182 "..\..\MainWindow.xaml" this.selectionRotation.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.selectionRotation_TextChanged); #line default #line hidden return; case 30: this.labelCursorPosition = ((System.Windows.Controls.Label)(target)); return; } this._contentLoaded = true; }
/// <summary> /// Populates the settings panel with the settings of a given plugin. /// </summary> /// <param name="plugin">The plugin whose settings to display</param> private void PopulateSettings(Plugin plugin) { SettingsGrid.RowDefinitions.Clear(); SettingsGrid.Children.Clear(); for (int i = 0; i < plugin.Settings.Count; i++) { Setting s = plugin.Settings[i]; // add row SettingsGrid.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto }); // create label TextBlock tb = new TextBlock() { Text = plugin.T(s.ID), Margin = new Thickness(5, 5, 10, 5), VerticalAlignment = VerticalAlignment.Center }; tb.SetBinding(TextBlock.VisibilityProperty, new Binding("IsVisible") { Source = s, Mode = BindingMode.OneWay, Converter = new BooleanToVisibilityConverter() }); Grid.SetRow(tb, i); Grid.SetColumn(tb, 0); SettingsGrid.Children.Add(tb); FrameworkElement control = null; // create control if (s.Type == typeof(Boolean)) { // checkbox control = new CheckBox() { Height = 15 }; control.SetBinding(CheckBox.IsCheckedProperty, new Binding("Value") { Source = s, Mode = BindingMode.TwoWay }); } else if (s.Type == typeof(Color)) { // color selector control = new ColorPicker() { ShowAvailableColors = false, ShowStandardColors = true, Width = 50, }; if (s.PossibleValues != null) { ColorConverter converter = new ColorConverter(); ((ColorPicker)control).AvailableColors.Clear(); foreach (Color c in s.PossibleValues) { System.Windows.Media.Color color = (System.Windows.Media.Color)converter.Convert(c, null, null, null); ((ColorPicker)control).AvailableColors.Add(new ColorItem(color, c.Name)); } } control.SetBinding(ColorPicker.SelectedColorProperty, new Binding("Value") { Source = s, Mode = BindingMode.TwoWay, Converter = new ColorConverter() }); } else if (s.PossibleValues != null) { // dropdown control = new ComboBox(); foreach (Object val in s.PossibleValues) { try { String content = val.ToString(); if (s.Type == typeof(String)) content = plugin.T(val.ToString()); ((ComboBox)control).Items.Add(new ComboBoxItem { Content = content, Name = val.ToString() }); } catch (Exception exc) { U.L(LogLevel.Warning, "PLUGIN", "Could not add combobox item in plugin settings: " + exc.Message); } } ((ComboBox)control).SelectedValuePath = "Name"; control.SetBinding(ComboBox.SelectedValueProperty, new Binding("Value") { Source = s, Mode = BindingMode.TwoWay }); } else if (s.Type == typeof(String)) { // text input control = new TextBox() { MaxWidth = 400, MinWidth = 250 }; control.SetBinding(TextBox.TextProperty, new Binding("Value") { Source = s, Mode = BindingMode.TwoWay }); } else if (s.Type == typeof(Int32)) { if (s.Maximum != null) { // slider control = new Slider() { Maximum = (Int32)s.Maximum, AutoToolTipPlacement = AutoToolTipPlacement.TopLeft, Width = 200, }; if (s.Minimum != null) ((Slider)control).Minimum = (Int32)s.Minimum; control.SetBinding(Slider.ValueProperty, new Binding("Value") { Source = s, Mode = BindingMode.TwoWay }); } else { // spinner control = new IntegerUpDown(); control.SetBinding(IntegerUpDown.ValueProperty, new Binding("Value") { Source = s, Mode = BindingMode.TwoWay }); } } else if (s.Type == typeof(Double)) { if (s.Maximum != null) { // slider control = new Slider() { Maximum = (Double)s.Maximum, AutoToolTipPlacement = AutoToolTipPlacement.TopLeft, Width = 200, }; if (s.Minimum != null) ((Slider)control).Minimum = (Double)s.Minimum; control.SetBinding(Slider.ValueProperty, new Binding("Value") { Source = s, Mode = BindingMode.TwoWay }); } else { // spinner control = new DoubleUpDown(); control.SetBinding(DoubleUpDown.ValueProperty, new Binding("Value") { Source = s, Mode = BindingMode.TwoWay }); } } if (control != null) { control.Margin = new Thickness(0, 5, 0, 5); control.VerticalAlignment = VerticalAlignment.Center; control.HorizontalAlignment = HorizontalAlignment.Left; control.SetBinding(FrameworkElement.VisibilityProperty, new Binding("IsVisible") { Source = s, Mode = BindingMode.OneWay, Converter = new BooleanToVisibilityConverter() }); Grid.SetRow(control, i); Grid.SetColumn(control, 1); SettingsGrid.Children.Add(control); } } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.spAdress = ((System.Windows.Controls.StackPanel)(target)); return; case 2: this.tbIp = ((System.Windows.Controls.TextBox)(target)); #line 35 "..\..\SettingWindow.xaml" this.tbIp.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.tbIp_TextChanged); #line default #line hidden return; case 3: this.tbPort = ((System.Windows.Controls.TextBox)(target)); #line 39 "..\..\SettingWindow.xaml" this.tbPort.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.tbPort_TextChanged); #line default #line hidden return; case 4: this.slOpacity = ((System.Windows.Controls.Slider)(target)); #line 48 "..\..\SettingWindow.xaml" this.slOpacity.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.slOpacity_ValueChanged); #line default #line hidden return; case 5: this.cbTopmost = ((System.Windows.Controls.CheckBox)(target)); return; case 6: this.slUpdateRate = ((System.Windows.Controls.Slider)(target)); return; case 7: this.cpText = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 8: this.cpBackground = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 9: this.btCancel = ((System.Windows.Controls.Button)(target)); return; case 10: this.btOk = ((System.Windows.Controls.Button)(target)); #line 72 "..\..\SettingWindow.xaml" this.btOk.Click += new System.Windows.RoutedEventHandler(this.btOk_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 "..\..\..\SettingsWindow.xaml" ((MetroTerminal.SettingsWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MetroWindow_Loaded); #line default #line hidden return; case 2: this.blueRect = ((System.Windows.Controls.Button)(target)); #line 40 "..\..\..\SettingsWindow.xaml" this.blueRect.Click += new System.Windows.RoutedEventHandler(this.blueRect_Click); #line default #line hidden return; case 3: this.redRect = ((System.Windows.Controls.Button)(target)); #line 41 "..\..\..\SettingsWindow.xaml" this.redRect.Click += new System.Windows.RoutedEventHandler(this.redRect_Click); #line default #line hidden return; case 4: this.greenRect = ((System.Windows.Controls.Button)(target)); #line 42 "..\..\..\SettingsWindow.xaml" this.greenRect.Click += new System.Windows.RoutedEventHandler(this.greenRect_Click); #line default #line hidden return; case 5: this.purpleRect = ((System.Windows.Controls.Button)(target)); #line 43 "..\..\..\SettingsWindow.xaml" this.purpleRect.Click += new System.Windows.RoutedEventHandler(this.purpleRect_Click); #line default #line hidden return; case 6: this.orangeRect = ((System.Windows.Controls.Button)(target)); #line 44 "..\..\..\SettingsWindow.xaml" this.orangeRect.Click += new System.Windows.RoutedEventHandler(this.orangeRect_Click); #line default #line hidden return; case 7: this.lightRect = ((System.Windows.Controls.Button)(target)); #line 53 "..\..\..\SettingsWindow.xaml" this.lightRect.Click += new System.Windows.RoutedEventHandler(this.lightRect_Click); #line default #line hidden return; case 8: this.darkRect = ((System.Windows.Controls.Button)(target)); #line 54 "..\..\..\SettingsWindow.xaml" this.darkRect.Click += new System.Windows.RoutedEventHandler(this.darkRect_Click); #line default #line hidden return; case 9: this.terminalBackPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); #line 66 "..\..\..\SettingsWindow.xaml" this.terminalBackPicker.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Windows.Media.Color>(this.terminalBackPicker_SelectedColorChanged); #line default #line hidden return; case 10: this.terminalForePicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); #line 70 "..\..\..\SettingsWindow.xaml" this.terminalForePicker.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Windows.Media.Color>(this.terminalForePicker_SelectedColorChanged); #line default #line hidden return; case 11: #line 72 "..\..\..\SettingsWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 12: #line 75 "..\..\..\SettingsWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1); #line default #line hidden return; case 13: this.listBoxTest = ((System.Windows.Controls.ListBox)(target)); return; case 14: this.alwaysOnTopCheckBox = ((System.Windows.Controls.CheckBox)(target)); return; case 15: this.instantScrollCheckBox = ((System.Windows.Controls.CheckBox)(target)); return; case 16: this.opacitySlider = ((System.Windows.Controls.Slider)(target)); #line 103 "..\..\..\SettingsWindow.xaml" this.opacitySlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.opacitySlider_ValueChanged); #line default #line hidden return; case 17: this.fontFamilySelector = ((System.Windows.Controls.ComboBox)(target)); return; case 18: this.fontSizeSelector = ((System.Windows.Controls.ComboBox)(target)); return; case 19: #line 128 "..\..\..\SettingsWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_2); #line default #line hidden return; case 20: this.showIconIfUpdate = ((System.Windows.Controls.CheckBox)(target)); return; case 21: this.autoCheckForUpdates = ((System.Windows.Controls.CheckBox)(target)); return; case 22: this.autoInstallUpdate = ((System.Windows.Controls.CheckBox)(target)); return; case 23: this.saveUpdateSettingButton = ((System.Windows.Controls.Button)(target)); #line 158 "..\..\..\SettingsWindow.xaml" this.saveUpdateSettingButton.Click += new System.Windows.RoutedEventHandler(this.saveUpdateSettingButton_Click); #line default #line hidden return; case 24: #line 161 "..\..\..\SettingsWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_3); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 6 "..\..\Graph3DWindow.xaml" ((IMPressive.Graph3DWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden #line 6 "..\..\Graph3DWindow.xaml" ((IMPressive.Graph3DWindow)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.Window_SizeChanged); #line default #line hidden #line 6 "..\..\Graph3DWindow.xaml" ((IMPressive.Graph3DWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown); #line default #line hidden #line 6 "..\..\Graph3DWindow.xaml" ((IMPressive.Graph3DWindow)(target)).MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.Window_MouseWheel); #line default #line hidden return; case 2: this.mainViewport = ((System.Windows.Controls.Viewport3D)(target)); return; case 3: this.camera = ((System.Windows.Media.Media3D.OrthographicCamera)(target)); return; case 4: this.Light1 = ((System.Windows.Media.Media3D.ModelVisual3D)(target)); return; case 5: this.btnLoad = ((System.Windows.Controls.Button)(target)); #line 49 "..\..\Graph3DWindow.xaml" this.btnLoad.Click += new System.Windows.RoutedEventHandler(this.btnLoad_Click); #line default #line hidden return; case 6: this.txtOperation = ((System.Windows.Controls.AutoCompleteBox)(target)); #line 51 "..\..\Graph3DWindow.xaml" this.txtOperation.KeyUp += new System.Windows.Input.KeyEventHandler(this.txtOperation_KeyUp); #line default #line hidden return; case 7: this.btnClear = ((System.Windows.Controls.Button)(target)); #line 60 "..\..\Graph3DWindow.xaml" this.btnClear.Click += new System.Windows.RoutedEventHandler(this.btnClear_Click); #line default #line hidden return; case 8: this.bg2 = ((System.Windows.Controls.Border)(target)); return; case 9: this.cpxColor = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.scheduler = ((WpfScheduler.Scheduler)(target)); #line 11 "..\..\..\Agenda\AgendaWindow.xaml" this.scheduler.OnScheduleContextMenuEvent += new System.EventHandler<WpfScheduler.Event>(this.scheduler_OnScheduleContextMenuEvent); #line default #line hidden #line 12 "..\..\..\Agenda\AgendaWindow.xaml" this.scheduler.OnScheduleAddEvent += new System.EventHandler<System.DateTime>(this.scheduler_OnScheduleAddEvent); #line default #line hidden #line 13 "..\..\..\Agenda\AgendaWindow.xaml" this.scheduler.OnEventMouseLeftButtonDown += new System.EventHandler<WpfScheduler.Event>(this.scheduler_OnEventMouseLeftButtonDown); #line default #line hidden return; case 2: this.calendar = ((System.Windows.Controls.Calendar)(target)); #line 14 "..\..\..\Agenda\AgendaWindow.xaml" this.calendar.SelectedDatesChanged += new System.EventHandler<System.Windows.Controls.SelectionChangedEventArgs>(this.calendar_SelectedDatesChanged); #line default #line hidden return; case 3: this.gbFilterEvents = ((System.Windows.Controls.GroupBox)(target)); return; case 4: this.lblCanceledEvents = ((System.Windows.Controls.Label)(target)); return; case 5: this.chkCanceledEvents = ((System.Windows.Controls.CheckBox)(target)); #line 19 "..\..\..\Agenda\AgendaWindow.xaml" this.chkCanceledEvents.Checked += new System.Windows.RoutedEventHandler(this.filterEvents_CheckedUnchecked); #line default #line hidden #line 19 "..\..\..\Agenda\AgendaWindow.xaml" this.chkCanceledEvents.Unchecked += new System.Windows.RoutedEventHandler(this.filterEvents_CheckedUnchecked); #line default #line hidden return; case 6: this.lblExceptionEvents = ((System.Windows.Controls.Label)(target)); return; case 7: this.chkExceptionEvents = ((System.Windows.Controls.CheckBox)(target)); #line 21 "..\..\..\Agenda\AgendaWindow.xaml" this.chkExceptionEvents.Checked += new System.Windows.RoutedEventHandler(this.filterEvents_CheckedUnchecked); #line default #line hidden #line 21 "..\..\..\Agenda\AgendaWindow.xaml" this.chkExceptionEvents.Unchecked += new System.Windows.RoutedEventHandler(this.filterEvents_CheckedUnchecked); #line default #line hidden return; case 8: this.lblPatientSkipsEvents = ((System.Windows.Controls.Label)(target)); return; case 9: this.chkPatientSkipsEvents = ((System.Windows.Controls.CheckBox)(target)); #line 23 "..\..\..\Agenda\AgendaWindow.xaml" this.chkPatientSkipsEvents.Checked += new System.Windows.RoutedEventHandler(this.filterEvents_CheckedUnchecked); #line default #line hidden #line 23 "..\..\..\Agenda\AgendaWindow.xaml" this.chkPatientSkipsEvents.Unchecked += new System.Windows.RoutedEventHandler(this.filterEvents_CheckedUnchecked); #line default #line hidden return; case 10: this.lblCompletedEvents = ((System.Windows.Controls.Label)(target)); return; case 11: this.chkCompletedEvents = ((System.Windows.Controls.CheckBox)(target)); #line 25 "..\..\..\Agenda\AgendaWindow.xaml" this.chkCompletedEvents.Checked += new System.Windows.RoutedEventHandler(this.filterEvents_CheckedUnchecked); #line default #line hidden #line 25 "..\..\..\Agenda\AgendaWindow.xaml" this.chkCompletedEvents.Unchecked += new System.Windows.RoutedEventHandler(this.filterEvents_CheckedUnchecked); #line default #line hidden return; case 12: this.lblNotCompletedEvents = ((System.Windows.Controls.Label)(target)); return; case 13: this.chkPendingEvents = ((System.Windows.Controls.CheckBox)(target)); #line 27 "..\..\..\Agenda\AgendaWindow.xaml" this.chkPendingEvents.Checked += new System.Windows.RoutedEventHandler(this.filterEvents_CheckedUnchecked); #line default #line hidden #line 27 "..\..\..\Agenda\AgendaWindow.xaml" this.chkPendingEvents.Unchecked += new System.Windows.RoutedEventHandler(this.filterEvents_CheckedUnchecked); #line default #line hidden return; case 14: this.cpCanceledEvents = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); #line 28 "..\..\..\Agenda\AgendaWindow.xaml" this.cpCanceledEvents.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Nullable<System.Windows.Media.Color>>(this.cpStatusEvents_SelectedColorChanged); #line default #line hidden return; case 15: this.cpExceptionEvents = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); #line 29 "..\..\..\Agenda\AgendaWindow.xaml" this.cpExceptionEvents.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Nullable<System.Windows.Media.Color>>(this.cpStatusEvents_SelectedColorChanged); #line default #line hidden return; case 16: this.cpPatientSkipsEvents = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); #line 30 "..\..\..\Agenda\AgendaWindow.xaml" this.cpPatientSkipsEvents.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Nullable<System.Windows.Media.Color>>(this.cpStatusEvents_SelectedColorChanged); #line default #line hidden return; case 17: this.cpPendingEvents = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); #line 31 "..\..\..\Agenda\AgendaWindow.xaml" this.cpPendingEvents.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Nullable<System.Windows.Media.Color>>(this.cpStatusEvents_SelectedColorChanged); #line default #line hidden return; case 18: this.cpCompletedEvents = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); #line 32 "..\..\..\Agenda\AgendaWindow.xaml" this.cpCompletedEvents.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Nullable<System.Windows.Media.Color>>(this.cpStatusEvents_SelectedColorChanged); #line default #line hidden return; case 19: this.lblCompletedEvents_Copy = ((System.Windows.Controls.Label)(target)); return; case 20: this.chkConfirmedEvents = ((System.Windows.Controls.CheckBox)(target)); #line 34 "..\..\..\Agenda\AgendaWindow.xaml" this.chkConfirmedEvents.Checked += new System.Windows.RoutedEventHandler(this.filterEvents_CheckedUnchecked); #line default #line hidden #line 34 "..\..\..\Agenda\AgendaWindow.xaml" this.chkConfirmedEvents.Unchecked += new System.Windows.RoutedEventHandler(this.filterEvents_CheckedUnchecked); #line default #line hidden return; case 21: this.cpConfirmedEvents = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); #line 35 "..\..\..\Agenda\AgendaWindow.xaml" this.cpConfirmedEvents.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Nullable<System.Windows.Media.Color>>(this.cpStatusEvents_SelectedColorChanged); #line default #line hidden return; case 22: this.gbPacientInfo = ((System.Windows.Controls.GroupBox)(target)); return; case 23: this.svPacientInfo = ((System.Windows.Controls.ScrollViewer)(target)); return; case 24: this.gridPacientInfo = ((System.Windows.Controls.Grid)(target)); return; case 25: this.lblExpNoCaption = ((System.Windows.Controls.Label)(target)); return; case 26: this.lblExpNo = ((System.Windows.Controls.TextBlock)(target)); return; case 27: this.lblCellPhoneCaption = ((System.Windows.Controls.Label)(target)); return; case 28: this.lblCellPhone = ((System.Windows.Controls.TextBlock)(target)); return; case 29: this.lblHomePhoneCaption = ((System.Windows.Controls.Label)(target)); return; case 30: this.lblHomePhone = ((System.Windows.Controls.TextBlock)(target)); return; case 31: this.lblEmailCaption = ((System.Windows.Controls.Label)(target)); return; case 32: this.lblEmail = ((System.Windows.Controls.TextBlock)(target)); return; case 33: this.lblPacientNameCaption = ((System.Windows.Controls.Label)(target)); return; case 34: this.lblPacientName = ((System.Windows.Controls.TextBlock)(target)); return; case 35: this.gbEventInfo = ((System.Windows.Controls.GroupBox)(target)); return; case 36: this.svEventInfo = ((System.Windows.Controls.ScrollViewer)(target)); return; case 37: this.gridEventInfo = ((System.Windows.Controls.Grid)(target)); return; case 38: this.lblEventStartTimeCaption = ((System.Windows.Controls.Label)(target)); return; case 39: this.lblEventStartTime = ((System.Windows.Controls.TextBlock)(target)); return; case 40: this.lblEventEndTimeCaption = ((System.Windows.Controls.Label)(target)); return; case 41: this.lblEventEndTime = ((System.Windows.Controls.TextBlock)(target)); return; case 42: this.lblEventStatusCaption = ((System.Windows.Controls.Label)(target)); return; case 43: this.lblEventStatus = ((System.Windows.Controls.TextBlock)(target)); return; case 44: this.lblEventCapturerCaption = ((System.Windows.Controls.Label)(target)); return; case 45: this.lblEventCapturer = ((System.Windows.Controls.TextBlock)(target)); return; case 46: this.lblEventIdCaption = ((System.Windows.Controls.Label)(target)); return; case 47: this.lblEventId = ((System.Windows.Controls.TextBlock)(target)); return; case 48: this.lblEventEndTimeCaption_Copy = ((System.Windows.Controls.Label)(target)); return; case 49: this.lblNextEvent = ((System.Windows.Controls.TextBlock)(target)); return; case 50: this.btnToday = ((System.Windows.Controls.Button)(target)); #line 72 "..\..\..\Agenda\AgendaWindow.xaml" this.btnToday.Click += new System.Windows.RoutedEventHandler(this.btnToday_Click); #line default #line hidden return; case 51: this.lblLoggedInCaption = ((System.Windows.Controls.Label)(target)); return; case 52: this.lblLoggedIn = ((System.Windows.Controls.Label)(target)); return; case 53: this.lblUpdateClinicHistoryMessage = ((System.Windows.Controls.Label)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.lblHeader = ((System.Windows.Controls.Label)(target)); return; case 2: this.clpForeground = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 3: this.clpBackground = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 4: this.chbxApplyOnOthers = ((System.Windows.Controls.CheckBox)(target)); #line 18 "..\..\..\View\EditArticleButtonDesignWindow.xaml" this.chbxApplyOnOthers.Checked += new System.Windows.RoutedEventHandler(this.chbxApplyOnOthers_Checked); #line default #line hidden return; case 5: this.btnOk = ((System.Windows.Controls.Button)(target)); #line 21 "..\..\..\View\EditArticleButtonDesignWindow.xaml" this.btnOk.Click += new System.Windows.RoutedEventHandler(this.btnOk_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 "..\..\..\GraphWindow.xaml" ((IMPressive.GraphWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden #line 6 "..\..\..\GraphWindow.xaml" ((IMPressive.GraphWindow)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.Window_SizeChanged); #line default #line hidden return; case 2: this.chartCanvas = ((System.Windows.Controls.Canvas)(target)); #line 31 "..\..\..\GraphWindow.xaml" this.chartCanvas.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.chartCanvas_MouseWheel); #line default #line hidden return; case 3: this.st = ((System.Windows.Media.ScaleTransform)(target)); return; case 4: this.btnLoad = ((System.Windows.Controls.Button)(target)); #line 37 "..\..\..\GraphWindow.xaml" this.btnLoad.Click += new System.Windows.RoutedEventHandler(this.btnLoad_Click); #line default #line hidden return; case 5: this.txtOperation = ((System.Windows.Controls.AutoCompleteBox)(target)); #line 39 "..\..\..\GraphWindow.xaml" this.txtOperation.KeyUp += new System.Windows.Input.KeyEventHandler(this.txtOperation_KeyUp); #line default #line hidden return; case 6: this.btnClear = ((System.Windows.Controls.Button)(target)); #line 48 "..\..\..\GraphWindow.xaml" this.btnClear.Click += new System.Windows.RoutedEventHandler(this.btnClear_Click); #line default #line hidden return; case 7: this.bg2 = ((System.Windows.Controls.Border)(target)); return; case 8: this.cpxColor = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.wordBox = ((System.Windows.Controls.TextBox)(target)); return; case 2: this.ColorPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 3: #line 56 "..\..\NewWord.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.save_word); #line default #line hidden return; case 4: this.bold = ((System.Windows.Controls.CheckBox)(target)); #line 65 "..\..\NewWord.xaml" this.bold.Checked += new System.Windows.RoutedEventHandler(this.bold_c); #line default #line hidden #line 66 "..\..\NewWord.xaml" this.bold.Unchecked += new System.Windows.RoutedEventHandler(this.bold_uc); #line default #line hidden return; case 5: this.italic = ((System.Windows.Controls.CheckBox)(target)); #line 73 "..\..\NewWord.xaml" this.italic.Checked += new System.Windows.RoutedEventHandler(this.italic_c); #line default #line hidden #line 74 "..\..\NewWord.xaml" this.italic.Unchecked += new System.Windows.RoutedEventHandler(this.italic_uc); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.TextEditor = ((System.Windows.Controls.TextBox)(target)); return; case 2: this.cbSize = ((System.Windows.Controls.ComboBox)(target)); #line 35 "..\..\..\View\AddTextWindow.xaml" this.cbSize.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbSize_SelectionChanged); #line default #line hidden return; case 3: this.chbBold = ((System.Windows.Controls.CheckBox)(target)); #line 51 "..\..\..\View\AddTextWindow.xaml" this.chbBold.Checked += new System.Windows.RoutedEventHandler(this.chbBold_Checked); #line default #line hidden #line 52 "..\..\..\View\AddTextWindow.xaml" this.chbBold.Unchecked += new System.Windows.RoutedEventHandler(this.chbBold_Unchecked); #line default #line hidden return; case 4: this.cpColor = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); #line 59 "..\..\..\View\AddTextWindow.xaml" this.cpColor.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Windows.Media.Color>(this.cpColor_SelectedColorChanged); #line default #line hidden return; case 5: this.chbItalic = ((System.Windows.Controls.CheckBox)(target)); #line 61 "..\..\..\View\AddTextWindow.xaml" this.chbItalic.Checked += new System.Windows.RoutedEventHandler(this.chbItalic_Checked); #line default #line hidden #line 62 "..\..\..\View\AddTextWindow.xaml" this.chbItalic.Unchecked += new System.Windows.RoutedEventHandler(this.chbItalic_Unchecked); #line default #line hidden return; case 6: this.lbActions = ((System.Windows.Controls.ListBox)(target)); return; case 7: this.btnAddAction = ((System.Windows.Controls.Button)(target)); #line 85 "..\..\..\View\AddTextWindow.xaml" this.btnAddAction.Click += new System.Windows.RoutedEventHandler(this.btnAddAction_Click); #line default #line hidden return; case 8: this.btDeleteAction = ((System.Windows.Controls.Button)(target)); #line 91 "..\..\..\View\AddTextWindow.xaml" this.btDeleteAction.Click += new System.Windows.RoutedEventHandler(this.btnDeleteAction_Click); #line default #line hidden return; case 9: this.btnOk = ((System.Windows.Controls.Button)(target)); #line 103 "..\..\..\View\AddTextWindow.xaml" this.btnOk.Click += new System.Windows.RoutedEventHandler(this.btnOk_Click); #line default #line hidden return; case 10: this.btnCancel = ((System.Windows.Controls.Button)(target)); return; } this._contentLoaded = true; }