private static void OnSelectedColorChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            ColorCanvas colorCanvas = o as ColorCanvas;

            if (colorCanvas != null)
            {
                colorCanvas.OnSelectedColorChanged(( Color )e.OldValue, ( Color )e.NewValue);
            }
        }
Beispiel #2
0
        private static void OnUsingAlphaChannelPropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            ColorCanvas colorCanvas = o as ColorCanvas;

            if (colorCanvas != null)
            {
                colorCanvas.OnUsingAlphaChannelChanged();
            }
        }
        private static void OnHexadecimalStringChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            ColorCanvas colorCanvas = o as ColorCanvas;

            if (colorCanvas != null)
            {
                colorCanvas.OnHexadecimalStringChanged(( string )e.OldValue, ( string )e.NewValue);
            }
        }
Beispiel #4
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this._colorCanvas = ((Xceed.Wpf.Toolkit.ColorCanvas)(target));
         return;
     }
     this._contentLoaded = true;
 }
Beispiel #5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.CodeLibUC = ((Poli.Makro.States.Color.ColorLib)(target));
                return;

            case 2:
                this.TabControl = ((System.Windows.Controls.TabControl)(target));
                return;

            case 3:
                this.CodeLibListSelectGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:

            #line 232 "..\..\..\..\States\Color\ColorLib.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddColorGroupBtn);

            #line default
            #line hidden
                return;

            case 5:
                this.ColorGroupsListView = ((System.Windows.Controls.ListView)(target));
                return;

            case 6:
                this.AddColorTitle = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.Color = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this._colorPicker = ((Xceed.Wpf.Toolkit.ColorCanvas)(target));
                return;

            case 9:
                this.AddColor = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 10:
                this.ColorsListView = ((System.Windows.Controls.ListView)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.color1 = ((Xceed.Wpf.Toolkit.ColorCanvas)(target));
                return;

            case 2:
                this.effektLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.savebtn = ((System.Windows.Controls.Button)(target));

            #line 10 "..\..\ThreeColorPlusTime.xaml"
                this.savebtn.Click += new System.Windows.RoutedEventHandler(this.savebtn_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.cancelbtn = ((System.Windows.Controls.Button)(target));

            #line 11 "..\..\ThreeColorPlusTime.xaml"
                this.cancelbtn.Click += new System.Windows.RoutedEventHandler(this.cancelbtn_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.effectText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.color2 = ((Xceed.Wpf.Toolkit.ColorCanvas)(target));
                return;

            case 7:
                this.color3 = ((Xceed.Wpf.Toolkit.ColorCanvas)(target));
                return;

            case 8:
                this.time = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #7
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 11 "..\..\MainWindow.xaml"
                ((WinESPStrip.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.onLoad);

            #line default
            #line hidden
                return;

            case 2:
                this.button = ((System.Windows.Controls.Button)(target));

            #line 13 "..\..\MainWindow.xaml"
                this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.Logs = ((System.Windows.Controls.ListBox)(target));
                return;

            case 4:
                this.button1 = ((System.Windows.Controls.Button)(target));

            #line 15 "..\..\MainWindow.xaml"
                this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.Color = ((Xceed.Wpf.Toolkit.ColorCanvas)(target));

            #line 16 "..\..\MainWindow.xaml"
                this.Color.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler <System.Nullable <System.Windows.Media.Color> >(this.ClrPcker_Background_SelectedColorChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #8
0
        public ColorNode(Core.VplControl hostCanvas)
            : base(hostCanvas)
        {
            AddOutputPortToNode("Color", typeof (Color));

            expander = new ExpanderColor
            {
                Style = hostCanvas.FindResource("ExpanderColorStyle") as Style
            };

            cc = new ColorCanvas
            {
                Background = Brushes.White,
                BorderBrush = Brushes.White
            };


            expander.Content = cc;
            cc.SelectedColorChanged += cc_SelectedColorChanged;

            cc.SelectedColor = Colors.LightGray;

            AddControlToNode(expander);
        }
Beispiel #9
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.TabControl = ((System.Windows.Controls.TabControl)(target));

            #line 170 "..\..\..\..\States\Color\Color.xaml"
                this.TabControl.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.TabControl_SelectionChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.ColorPickerGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.MouseOverColorBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 4:
                this.MousePositions = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.MouseColorPicker = ((Xceed.Wpf.Toolkit.ColorCanvas)(target));
                return;

            case 6:

            #line 220 "..\..\..\..\States\Color\Color.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Checked += new System.Windows.RoutedEventHandler(this.ColorWatcher_Checked);

            #line default
            #line hidden

            #line 220 "..\..\..\..\States\Color\Color.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Unchecked += new System.Windows.RoutedEventHandler(this.ColorWatcher_Unchecked);

            #line default
            #line hidden
                return;

            case 7:
                this.PickedColorsListView = ((System.Windows.Controls.ListView)(target));
                return;

            case 8:
                this.PickedGroupSaveGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 9:

            #line 358 "..\..\..\..\States\Color\Color.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PickedGroupSave_Close);

            #line default
            #line hidden
                return;

            case 10:
                this.PickedColorsGroupName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 11:

            #line 399 "..\..\..\..\States\Color\Color.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SavePickedColors);

            #line default
            #line hidden
                return;

            case 12:

            #line 410 "..\..\..\..\States\Color\Color.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PickedGroupSave_Close);

            #line default
            #line hidden
                return;

            case 13:
                this.ColorPickerMiniTB = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 436 "..\..\..\..\States\Color\Color.xaml"
                this.ColorPickerMiniTB.Checked += new System.Windows.RoutedEventHandler(this.ColorPickerMini_Checked);

            #line default
            #line hidden

            #line 436 "..\..\..\..\States\Color\Color.xaml"
                this.ColorPickerMiniTB.Unchecked += new System.Windows.RoutedEventHandler(this.ColorPickerMini_Close);

            #line default
            #line hidden
                return;

            case 14:

            #line 447 "..\..\..\..\States\Color\Color.xaml"
                ((System.Windows.Controls.Primitives.ToggleButton)(target)).Checked += new System.Windows.RoutedEventHandler(this.SaveAsPickedColors_Checked);

            #line default
            #line hidden

            #line 447 "..\..\..\..\States\Color\Color.xaml"
                ((System.Windows.Controls.Primitives.ToggleButton)(target)).Unchecked += new System.Windows.RoutedEventHandler(this.PickedGroupSave_Close);

            #line default
            #line hidden
                return;

            case 15:
                this.ColorLibGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 16:
                this.CodeLibListSelectGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 17:
                this.ColorGroupsListView = ((System.Windows.Controls.ListView)(target));
                return;

            case 18:
                this.ColorsListView = ((System.Windows.Controls.ListView)(target));
                return;

            case 19:
                this.AddNewColorGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 20:

            #line 498 "..\..\..\..\States\Color\Color.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddNewColor_Close);

            #line default
            #line hidden
                return;

            case 21:
                this.AddColorTitle = ((System.Windows.Controls.TextBox)(target));
                return;

            case 22:
                this.AddColorString = ((System.Windows.Controls.TextBox)(target));
                return;

            case 23:
                this._colorPicker = ((Xceed.Wpf.Toolkit.ColorCanvas)(target));
                return;

            case 24:

            #line 604 "..\..\..\..\States\Color\Color.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveColor);

            #line default
            #line hidden
                return;

            case 25:

            #line 615 "..\..\..\..\States\Color\Color.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddNewColor_Close);

            #line default
            #line hidden
                return;

            case 26:
                this.AddNewGroupGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 27:

            #line 631 "..\..\..\..\States\Color\Color.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddNewGroup_Close);

            #line default
            #line hidden
                return;

            case 28:
                this.AddGroupTitle = ((System.Windows.Controls.TextBox)(target));
                return;

            case 29:

            #line 693 "..\..\..\..\States\Color\Color.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveGroup);

            #line default
            #line hidden
                return;

            case 30:

            #line 704 "..\..\..\..\States\Color\Color.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddNewGroup_Close);

            #line default
            #line hidden
                return;

            case 31:
                this.AddNewColorTB = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 730 "..\..\..\..\States\Color\Color.xaml"
                this.AddNewColorTB.Checked += new System.Windows.RoutedEventHandler(this.AddNewColor_Checked);

            #line default
            #line hidden

            #line 730 "..\..\..\..\States\Color\Color.xaml"
                this.AddNewColorTB.Unchecked += new System.Windows.RoutedEventHandler(this.AddNewColor_Close);

            #line default
            #line hidden
                return;

            case 32:
                this.AddNewGroupTb = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 742 "..\..\..\..\States\Color\Color.xaml"
                this.AddNewGroupTb.Checked += new System.Windows.RoutedEventHandler(this.AddNewGroup_Checked);

            #line default
            #line hidden

            #line 742 "..\..\..\..\States\Color\Color.xaml"
                this.AddNewGroupTb.Unchecked += new System.Windows.RoutedEventHandler(this.AddNewGroup_Close);

            #line default
            #line hidden
                return;

            case 33:
                this.DominantColorsGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 34:
                this.DominantColorsListView = ((System.Windows.Controls.ListView)(target));
                return;

            case 35:
                this.DominantColorsGroupSaveGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 36:

            #line 807 "..\..\..\..\States\Color\Color.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DominantColorsGroupSave_Close);

            #line default
            #line hidden
                return;

            case 37:
                this.DominantColorsGroupName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 38:

            #line 848 "..\..\..\..\States\Color\Color.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveDominantColors);

            #line default
            #line hidden
                return;

            case 39:

            #line 859 "..\..\..\..\States\Color\Color.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DominantColorsGroupSave_Close);

            #line default
            #line hidden
                return;

            case 40:
                this.SaveDominantColorsGroupTB = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 887 "..\..\..\..\States\Color\Color.xaml"
                this.SaveDominantColorsGroupTB.Checked += new System.Windows.RoutedEventHandler(this.SaveDominantColorsGroup_Checked);

            #line default
            #line hidden

            #line 887 "..\..\..\..\States\Color\Color.xaml"
                this.SaveDominantColorsGroupTB.Unchecked += new System.Windows.RoutedEventHandler(this.DominantColorsGroupSave_Close);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.MainFrame = ((TextFinder.MainWindow)(target));
     return;
     case 2:
     
     #line 11 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Open_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 12 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Save_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 14 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 16 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.About_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.SearchGrid = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 7:
     this.Pattern = ((Xceed.Wpf.Toolkit.WatermarkTextBox)(target));
     return;
     case 8:
     
     #line 28 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Add_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.IgnoreCase = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 10:
     
     #line 32 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Find_click);
     
     #line default
     #line hidden
     return;
     case 11:
     
     #line 33 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.FindAll_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     
     #line 34 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ClearBox_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     
     #line 35 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Clear_click);
     
     #line default
     #line hidden
     return;
     case 14:
     this.Result = ((System.Windows.Controls.ListView)(target));
     return;
     case 16:
     this.RTB = ((System.Windows.Controls.RichTextBox)(target));
     
     #line 78 "..\..\MainWindow.xaml"
     this.RTB.SelectionChanged += new System.Windows.RoutedEventHandler(this.rtbEditor_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 17:
     this.RTBParagraph = ((System.Windows.Documents.Paragraph)(target));
     return;
     case 18:
     this.QuantityChar = ((System.Windows.Controls.Label)(target));
     return;
     case 19:
     this.QuantityEndl = ((System.Windows.Controls.Label)(target));
     return;
     case 20:
     this.TimeSearch = ((System.Windows.Controls.Label)(target));
     return;
     case 21:
     this.QuantityFinds = ((System.Windows.Controls.Label)(target));
     return;
     case 22:
     this.CBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 23:
     this._Background = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 24:
     this._Foreground = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 25:
     this.CPMenu = ((Xceed.Wpf.Toolkit.ColorCanvas)(target));
     return;
     case 26:
     
     #line 116 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CPMenu_SelectedColorChanged);
     
     #line default
     #line hidden
     return;
     case 27:
     this.btnBold = ((System.Windows.Controls.Primitives.ToggleButton)(target));
     
     #line 120 "..\..\MainWindow.xaml"
     this.btnBold.Click += new System.Windows.RoutedEventHandler(this.btnBold_Click);
     
     #line default
     #line hidden
     return;
     case 28:
     this.btnItalic = ((System.Windows.Controls.Primitives.ToggleButton)(target));
     
     #line 123 "..\..\MainWindow.xaml"
     this.btnItalic.Click += new System.Windows.RoutedEventHandler(this.btnItalic_Click);
     
     #line default
     #line hidden
     return;
     case 29:
     this.btnUnderline = ((System.Windows.Controls.Primitives.ToggleButton)(target));
     
     #line 126 "..\..\MainWindow.xaml"
     this.btnUnderline.Click += new System.Windows.RoutedEventHandler(this.btnUnderline_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Beispiel #11
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.win_GrainWindow = ((StructureTools.GrainWindow)(target));
                return;

            case 2:
                this.btn_GrainDelete = ((System.Windows.Controls.Button)(target));

            #line 8 "..\..\GrainWindow.xaml"
                this.btn_GrainDelete.Click += new System.Windows.RoutedEventHandler(this.btn_GrainDelete_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.lbox_GrainsList = ((System.Windows.Controls.ListBox)(target));

            #line 9 "..\..\GrainWindow.xaml"
                this.lbox_GrainsList.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lbox_GrainsList_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 4:
                this.btn_GrainEdit = ((System.Windows.Controls.Button)(target));

            #line 10 "..\..\GrainWindow.xaml"
                this.btn_GrainEdit.Click += new System.Windows.RoutedEventHandler(this.btn_GrainEdit_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.btn_GrainAdd = ((System.Windows.Controls.Button)(target));

            #line 11 "..\..\GrainWindow.xaml"
                this.btn_GrainAdd.Click += new System.Windows.RoutedEventHandler(this.btn_GrainAdd_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.colc_Picker = ((Xceed.Wpf.Toolkit.ColorCanvas)(target));
                return;

            case 7:
                this.btn_Clear = ((System.Windows.Controls.Button)(target));

            #line 13 "..\..\GrainWindow.xaml"
                this.btn_Clear.Click += new System.Windows.RoutedEventHandler(this.btn_Clear_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.btn_Done = ((System.Windows.Controls.Button)(target));

            #line 14 "..\..\GrainWindow.xaml"
                this.btn_Done.Click += new System.Windows.RoutedEventHandler(this.btn_Done_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.gbox_InputMethod = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 10:
                this.rad_Input_Manual = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 11:
                this.lab_GrainX = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.tbox_GrainX = ((System.Windows.Controls.TextBox)(target));
                return;

            case 13:
                this.lab_GrainY = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.tbox_GrainY = ((System.Windows.Controls.TextBox)(target));
                return;

            case 15:
                this.rad_Input_Random = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 16:
                this.lab_RandGrains = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.tbox_RandGrain = ((System.Windows.Controls.TextBox)(target));
                return;

            case 18:
                this.rad_Input_Click = ((System.Windows.Controls.RadioButton)(target));

            #line 25 "..\..\GrainWindow.xaml"
                this.rad_Input_Click.Checked += new System.Windows.RoutedEventHandler(this.rad_Input_Click_Checked);

            #line default
            #line hidden

            #line 25 "..\..\GrainWindow.xaml"
                this.rad_Input_Click.Unchecked += new System.Windows.RoutedEventHandler(this.rad_Input_Click_Unchecked);

            #line default
            #line hidden
                return;

            case 19:
                this.btn_RandomColor = ((System.Windows.Controls.Button)(target));

            #line 26 "..\..\GrainWindow.xaml"
                this.btn_RandomColor.Click += new System.Windows.RoutedEventHandler(this.btn_RandomColor_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.lab_GrainCount = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.ColorCanvas = ((Xceed.Wpf.Toolkit.ColorCanvas)(target));
     return;
     case 2:
     
     #line 16 "..\..\ColorPaletteTool.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Chosen);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Beispiel #13
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 13 "..\..\MainWindow.xaml"
                ((ClearDraw.MainWindow)(target)).Activated += new System.EventHandler(this.Window_Activated);

            #line default
            #line hidden

            #line 14 "..\..\MainWindow.xaml"
                ((ClearDraw.MainWindow)(target)).Deactivated += new System.EventHandler(this.Window_Deactivated);

            #line default
            #line hidden

            #line 15 "..\..\MainWindow.xaml"
                ((ClearDraw.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown);

            #line default
            #line hidden

            #line 16 "..\..\MainWindow.xaml"
                ((ClearDraw.MainWindow)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.Window_MouseMove);

            #line default
            #line hidden
                return;

            case 2:
                this.cvs = ((System.Windows.Controls.Canvas)(target));

            #line 35 "..\..\MainWindow.xaml"
                this.cvs.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.cvs_MouseUp);

            #line default
            #line hidden
                return;

            case 3:
                this.inkCanvas = ((System.Windows.Controls.InkCanvas)(target));
                return;

            case 4:
                this.cvsTouch = ((System.Windows.Controls.Canvas)(target));

            #line 38 "..\..\MainWindow.xaml"
                this.cvsTouch.MouseEnter += new System.Windows.Input.MouseEventHandler(this.cvsTouch_MouseEnter);

            #line default
            #line hidden
                return;

            case 5:
                this.cvsButtons = ((System.Windows.Controls.Canvas)(target));

            #line 41 "..\..\MainWindow.xaml"
                this.cvsButtons.MouseLeave += new System.Windows.Input.MouseEventHandler(this.cvsButtons_MouseLeave);

            #line default
            #line hidden

            #line 41 "..\..\MainWindow.xaml"
                this.cvsButtons.MouseEnter += new System.Windows.Input.MouseEventHandler(this.cvsButtons_MouseEnter);

            #line default
            #line hidden
                return;

            case 6:
                this.btnClear = ((System.Windows.Controls.Button)(target));

            #line 42 "..\..\MainWindow.xaml"
                this.btnClear.Click += new System.Windows.RoutedEventHandler(this.btnClear_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.btnClose = ((System.Windows.Controls.Button)(target));

            #line 47 "..\..\MainWindow.xaml"
                this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.btnSettings = ((System.Windows.Controls.Button)(target));
                return;

            case 9:
                this.btnStop = ((System.Windows.Controls.Button)(target));

            #line 57 "..\..\MainWindow.xaml"
                this.btnStop.Click += new System.Windows.RoutedEventHandler(this.btnStop_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.btnStart = ((System.Windows.Controls.Button)(target));

            #line 62 "..\..\MainWindow.xaml"
                this.btnStart.Click += new System.Windows.RoutedEventHandler(this.btnStart_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.DetailsButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 67 "..\..\MainWindow.xaml"
                this.DetailsButton.Checked += new System.Windows.RoutedEventHandler(this.DetailsButton_Checked);

            #line default
            #line hidden

            #line 67 "..\..\MainWindow.xaml"
                this.DetailsButton.Click += new System.Windows.RoutedEventHandler(this.DetailsButton_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.pup = ((System.Windows.Controls.Primitives.Popup)(target));

            #line 76 "..\..\MainWindow.xaml"
                this.pup.LostFocus += new System.Windows.RoutedEventHandler(this.pup_LostFocus);

            #line default
            #line hidden

            #line 76 "..\..\MainWindow.xaml"
                this.pup.Closed += new System.EventHandler(this.pup_Closed);

            #line default
            #line hidden
                return;

            case 13:
                this.clrCanvas = ((Xceed.Wpf.Toolkit.ColorCanvas)(target));

            #line 77 "..\..\MainWindow.xaml"
                this.clrCanvas.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler <System.Nullable <System.Windows.Media.Color> >(this.ColorCanvas_SelectedColorChanged);

            #line default
            #line hidden
                return;

            case 14:
                this.ShapeButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 15:
                this.pupShapes = ((System.Windows.Controls.Primitives.Popup)(target));

            #line 88 "..\..\MainWindow.xaml"
                this.pupShapes.MouseEnter += new System.Windows.Input.MouseEventHandler(this.pupShapes_MouseEnter);

            #line default
            #line hidden
                return;

            case 16:
                this.btnPen = ((System.Windows.Controls.Button)(target));

            #line 99 "..\..\MainWindow.xaml"
                this.btnPen.Click += new System.Windows.RoutedEventHandler(this.btnPen_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.btnArrow = ((System.Windows.Controls.Button)(target));

            #line 104 "..\..\MainWindow.xaml"
                this.btnArrow.Click += new System.Windows.RoutedEventHandler(this.btnArrow_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.btnText = ((System.Windows.Controls.Button)(target));

            #line 109 "..\..\MainWindow.xaml"
                this.btnText.Click += new System.Windows.RoutedEventHandler(this.btnText_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #14
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 13 "..\..\MainWindow.xaml"
     ((ClearDraw.MainWindow)(target)).Activated += new System.EventHandler(this.Window_Activated);
     
     #line default
     #line hidden
     
     #line 14 "..\..\MainWindow.xaml"
     ((ClearDraw.MainWindow)(target)).Deactivated += new System.EventHandler(this.Window_Deactivated);
     
     #line default
     #line hidden
     
     #line 15 "..\..\MainWindow.xaml"
     ((ClearDraw.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown);
     
     #line default
     #line hidden
     
     #line 16 "..\..\MainWindow.xaml"
     ((ClearDraw.MainWindow)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.Window_MouseMove);
     
     #line default
     #line hidden
     return;
     case 2:
     this.cvs = ((System.Windows.Controls.Canvas)(target));
     
     #line 35 "..\..\MainWindow.xaml"
     this.cvs.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.cvs_MouseUp);
     
     #line default
     #line hidden
     return;
     case 3:
     this.inkCanvas = ((System.Windows.Controls.InkCanvas)(target));
     return;
     case 4:
     this.cvsTouch = ((System.Windows.Controls.Canvas)(target));
     
     #line 38 "..\..\MainWindow.xaml"
     this.cvsTouch.MouseEnter += new System.Windows.Input.MouseEventHandler(this.cvsTouch_MouseEnter);
     
     #line default
     #line hidden
     return;
     case 5:
     this.cvsButtons = ((System.Windows.Controls.Canvas)(target));
     
     #line 41 "..\..\MainWindow.xaml"
     this.cvsButtons.MouseLeave += new System.Windows.Input.MouseEventHandler(this.cvsButtons_MouseLeave);
     
     #line default
     #line hidden
     
     #line 41 "..\..\MainWindow.xaml"
     this.cvsButtons.MouseEnter += new System.Windows.Input.MouseEventHandler(this.cvsButtons_MouseEnter);
     
     #line default
     #line hidden
     return;
     case 6:
     this.btnClear = ((System.Windows.Controls.Button)(target));
     
     #line 42 "..\..\MainWindow.xaml"
     this.btnClear.Click += new System.Windows.RoutedEventHandler(this.btnClear_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.btnClose = ((System.Windows.Controls.Button)(target));
     
     #line 47 "..\..\MainWindow.xaml"
     this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.btnSettings = ((System.Windows.Controls.Button)(target));
     return;
     case 9:
     this.btnStop = ((System.Windows.Controls.Button)(target));
     
     #line 57 "..\..\MainWindow.xaml"
     this.btnStop.Click += new System.Windows.RoutedEventHandler(this.btnStop_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.btnStart = ((System.Windows.Controls.Button)(target));
     
     #line 62 "..\..\MainWindow.xaml"
     this.btnStart.Click += new System.Windows.RoutedEventHandler(this.btnStart_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     this.DetailsButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
     
     #line 67 "..\..\MainWindow.xaml"
     this.DetailsButton.Checked += new System.Windows.RoutedEventHandler(this.DetailsButton_Checked);
     
     #line default
     #line hidden
     
     #line 67 "..\..\MainWindow.xaml"
     this.DetailsButton.Click += new System.Windows.RoutedEventHandler(this.DetailsButton_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     this.pup = ((System.Windows.Controls.Primitives.Popup)(target));
     
     #line 76 "..\..\MainWindow.xaml"
     this.pup.LostFocus += new System.Windows.RoutedEventHandler(this.pup_LostFocus);
     
     #line default
     #line hidden
     
     #line 76 "..\..\MainWindow.xaml"
     this.pup.Closed += new System.EventHandler(this.pup_Closed);
     
     #line default
     #line hidden
     return;
     case 13:
     this.clrCanvas = ((Xceed.Wpf.Toolkit.ColorCanvas)(target));
     
     #line 77 "..\..\MainWindow.xaml"
     this.clrCanvas.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Nullable<System.Windows.Media.Color>>(this.ColorCanvas_SelectedColorChanged);
     
     #line default
     #line hidden
     return;
     case 14:
     this.ShapeButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
     return;
     case 15:
     this.pupShapes = ((System.Windows.Controls.Primitives.Popup)(target));
     
     #line 88 "..\..\MainWindow.xaml"
     this.pupShapes.MouseEnter += new System.Windows.Input.MouseEventHandler(this.pupShapes_MouseEnter);
     
     #line default
     #line hidden
     return;
     case 16:
     this.btnPen = ((System.Windows.Controls.Button)(target));
     
     #line 99 "..\..\MainWindow.xaml"
     this.btnPen.Click += new System.Windows.RoutedEventHandler(this.btnPen_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.btnArrow = ((System.Windows.Controls.Button)(target));
     
     #line 104 "..\..\MainWindow.xaml"
     this.btnArrow.Click += new System.Windows.RoutedEventHandler(this.btnArrow_Click);
     
     #line default
     #line hidden
     return;
     case 18:
     this.btnText = ((System.Windows.Controls.Button)(target));
     
     #line 109 "..\..\MainWindow.xaml"
     this.btnText.Click += new System.Windows.RoutedEventHandler(this.btnText_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }