예제 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainWindowView = ((ProjectionTest.MainWindow)(target));

            #line 5 "..\..\MainWindow.xaml"
                this.MainWindowView.KeyDown += new System.Windows.Input.KeyEventHandler(this.MainWindowView_KeyDown);

            #line default
            #line hidden

            #line 5 "..\..\MainWindow.xaml"
                this.MainWindowView.SizeChanged += new System.Windows.SizeChangedEventHandler(this.MainWindowView_SizeChanged);

            #line default
            #line hidden

            #line 5 "..\..\MainWindow.xaml"
                this.MainWindowView.KeyUp += new System.Windows.Input.KeyEventHandler(this.MainWindowView_KeyUp);

            #line default
            #line hidden

            #line 5 "..\..\MainWindow.xaml"
                this.MainWindowView.TextInput += new System.Windows.Input.TextCompositionEventHandler(this.MainWindowView_TextInput);

            #line default
            #line hidden

            #line 5 "..\..\MainWindow.xaml"
                this.MainWindowView.Closing += new System.ComponentModel.CancelEventHandler(this.MainWindowView_Closing);

            #line default
            #line hidden
                return;

            case 2:

            #line 67 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FullscreenButton_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.FullscreenButtons = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 4:
                this.CircleMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 75 "..\..\MainWindow.xaml"
                this.CircleMenuItem.Click += new System.Windows.RoutedEventHandler(this.CircleMenuItem_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.SquareMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 80 "..\..\MainWindow.xaml"
                this.SquareMenuItem.Click += new System.Windows.RoutedEventHandler(this.SquareMenuItem_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.TextMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 86 "..\..\MainWindow.xaml"
                this.TextMenuItem.Click += new System.Windows.RoutedEventHandler(this.TextMenuItem_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.FontSizeMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 91 "..\..\MainWindow.xaml"
                this.FontSizeMenuItem.Click += new System.Windows.RoutedEventHandler(this.FontSizeMenuItem_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.s50MenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 94 "..\..\MainWindow.xaml"
                this.s50MenuItem.Click += new System.Windows.RoutedEventHandler(this.s50MenuItem_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.s100MenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 95 "..\..\MainWindow.xaml"
                this.s100MenuItem.Click += new System.Windows.RoutedEventHandler(this.s100MenuItem_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.s150MenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 96 "..\..\MainWindow.xaml"
                this.s150MenuItem.Click += new System.Windows.RoutedEventHandler(this.s150MenuItem_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.s200MenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 97 "..\..\MainWindow.xaml"
                this.s200MenuItem.Click += new System.Windows.RoutedEventHandler(this.s200MenuItem_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.ColorsMenuItem = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 13:

            #line 116 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ClearButton_Click);

            #line default
            #line hidden
                return;

            case 14:

            #line 121 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Import_Click);

            #line default
            #line hidden
                return;

            case 15:

            #line 122 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveButton_Click);

            #line default
            #line hidden
                return;

            case 16:

            #line 128 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.CloseButton_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.MainDock = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 18:
                this.UpperDock = ((System.Windows.Controls.Grid)(target));
                return;

            case 19:
                this.DragRectangle = ((System.Windows.Shapes.Rectangle)(target));

            #line 138 "..\..\MainWindow.xaml"
                this.DragRectangle.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.DragRectangle_MouseDown);

            #line default
            #line hidden
                return;

            case 20:
                this.CloseButton = ((System.Windows.Controls.Button)(target));

            #line 139 "..\..\MainWindow.xaml"
                this.CloseButton.Click += new System.Windows.RoutedEventHandler(this.CloseButton_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.Maximize = ((System.Windows.Controls.Button)(target));

            #line 141 "..\..\MainWindow.xaml"
                this.Maximize.Click += new System.Windows.RoutedEventHandler(this.Maximize_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.Restore = ((System.Windows.Controls.Button)(target));

            #line 146 "..\..\MainWindow.xaml"
                this.Restore.Click += new System.Windows.RoutedEventHandler(this.Restore_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.MinimizeButton = ((System.Windows.Controls.Button)(target));

            #line 152 "..\..\MainWindow.xaml"
                this.MinimizeButton.Click += new System.Windows.RoutedEventHandler(this.MinimizeButton_Click);

            #line default
            #line hidden
                return;

            case 24:

            #line 153 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Label)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.DragRectangle_MouseDown);

            #line default
            #line hidden
                return;

            case 25:
                this.BottomDock = ((System.Windows.Controls.Grid)(target));
                return;

            case 26:
                this.ClearButton = ((System.Windows.Controls.Button)(target));

            #line 168 "..\..\MainWindow.xaml"
                this.ClearButton.Click += new System.Windows.RoutedEventHandler(this.ClearButton_Click);

            #line default
            #line hidden
                return;

            case 27:
                this.SaveButton = ((System.Windows.Controls.Button)(target));

            #line 169 "..\..\MainWindow.xaml"
                this.SaveButton.Click += new System.Windows.RoutedEventHandler(this.SaveButton_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.UndoButton = ((System.Windows.Controls.Button)(target));

            #line 170 "..\..\MainWindow.xaml"
                this.UndoButton.Click += new System.Windows.RoutedEventHandler(this.UndoButton_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.ColorPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target));

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

            #line default
            #line hidden
                return;

            case 30:
                this.SizeSlider = ((System.Windows.Controls.Slider)(target));

            #line 172 "..\..\MainWindow.xaml"
                this.SizeSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.SizeSlider_ValueChanged);

            #line default
            #line hidden
                return;

            case 31:
                this.label = ((System.Windows.Controls.Label)(target));
                return;

            case 32:
                this.Events = ((System.Windows.Controls.Grid)(target));
                return;

            case 33:
                this.AnimateImage = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 34:
                this.EventImage = ((System.Windows.Controls.Image)(target));
                return;

            case 35:
                this.EventCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 36:
                this.MainGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 37:
                this.LeftDockGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 38:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 39:
                this.Binder = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 40:
                this.RootBind = ((System.Windows.Controls.StackPanel)(target));

            #line 195 "..\..\MainWindow.xaml"
                this.RootBind.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.RootBind_MouseDown);

            #line default
            #line hidden
                return;

            case 41:
                this.image = ((System.Windows.Controls.Image)(target));
                return;

            case 42:
                this.label2 = ((System.Windows.Controls.Label)(target));
                return;

            case 43:
                this.RightDockGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 44:
                this.SizeInfoLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 45:
                this.ServerInfoLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 46:
                this.EventsGrid = ((System.Windows.Controls.Canvas)(target));

            #line 207 "..\..\MainWindow.xaml"
                this.EventsGrid.MouseMove += new System.Windows.Input.MouseEventHandler(this.EventsGrid_MouseMove);

            #line default
            #line hidden

            #line 207 "..\..\MainWindow.xaml"
                this.EventsGrid.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.EventsGrid_MouseLeftButtonUp);

            #line default
            #line hidden

            #line 207 "..\..\MainWindow.xaml"
                this.EventsGrid.MouseLeave += new System.Windows.Input.MouseEventHandler(this.EventsGrid_MouseLeave);

            #line default
            #line hidden
                return;

            case 47:
                this.MouseDetectionUpperGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 48:
                this.FullScreenSizeLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 49:
                this.MouseDetectionGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 50:
                this.FullscreenButton = ((System.Windows.Controls.Button)(target));

            #line 212 "..\..\MainWindow.xaml"
                this.FullscreenButton.Click += new System.Windows.RoutedEventHandler(this.FullscreenButton_Click);

            #line default
            #line hidden
                return;

            case 51:
                this.FullScreenImage = ((System.Windows.Controls.Image)(target));
                return;

            case 52:
                this.FullscreenClearButton = ((System.Windows.Controls.Button)(target));

            #line 215 "..\..\MainWindow.xaml"
                this.FullscreenClearButton.Click += new System.Windows.RoutedEventHandler(this.ClearButton_Click);

            #line default
            #line hidden
                return;

            case 53:
                this.FullscreenSaveButton = ((System.Windows.Controls.Button)(target));

            #line 216 "..\..\MainWindow.xaml"
                this.FullscreenSaveButton.Click += new System.Windows.RoutedEventHandler(this.SaveButton_Click);

            #line default
            #line hidden
                return;

            case 54:
                this.FullscreenUndoButton = ((System.Windows.Controls.Button)(target));

            #line 217 "..\..\MainWindow.xaml"
                this.FullscreenUndoButton.Click += new System.Windows.RoutedEventHandler(this.UndoButton_Click);

            #line default
            #line hidden
                return;

            case 55:
                this.FullscreenColorPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target));

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

            #line default
            #line hidden
                return;

            case 56:
                this.FullscreenSizeSlider = ((System.Windows.Controls.Slider)(target));

            #line 219 "..\..\MainWindow.xaml"
                this.FullscreenSizeSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.SizeSlider_ValueChanged);

            #line default
            #line hidden
                return;

            case 57:
                this.FullscreenLabel = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainWindowView = ((ProjectionTest.MainWindow)(target));

            #line 5 "..\..\MainWindow.xaml"
                this.MainWindowView.KeyDown += new System.Windows.Input.KeyEventHandler(this.MainWindowView_KeyDown);

            #line default
            #line hidden

            #line 5 "..\..\MainWindow.xaml"
                this.MainWindowView.SizeChanged += new System.Windows.SizeChangedEventHandler(this.MainWindowView_SizeChanged);

            #line default
            #line hidden

            #line 5 "..\..\MainWindow.xaml"
                this.MainWindowView.KeyUp += new System.Windows.Input.KeyEventHandler(this.MainWindowView_KeyUp);

            #line default
            #line hidden
                return;

            case 2:

            #line 67 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FullscreenButton_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.FullscreenButtons = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 4:
                this.CircleMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 75 "..\..\MainWindow.xaml"
                this.CircleMenuItem.Click += new System.Windows.RoutedEventHandler(this.CircleMenuItem_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.SquareMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 80 "..\..\MainWindow.xaml"
                this.SquareMenuItem.Click += new System.Windows.RoutedEventHandler(this.SquareMenuItem_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.s50MenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 87 "..\..\MainWindow.xaml"
                this.s50MenuItem.Click += new System.Windows.RoutedEventHandler(this.s50MenuItem_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.s100MenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 88 "..\..\MainWindow.xaml"
                this.s100MenuItem.Click += new System.Windows.RoutedEventHandler(this.s100MenuItem_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.s150MenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 89 "..\..\MainWindow.xaml"
                this.s150MenuItem.Click += new System.Windows.RoutedEventHandler(this.s150MenuItem_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.s200MenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 90 "..\..\MainWindow.xaml"
                this.s200MenuItem.Click += new System.Windows.RoutedEventHandler(this.s200MenuItem_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.ColorsMenuItem = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 11:

            #line 109 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ClearButton_Click);

            #line default
            #line hidden
                return;

            case 12:

            #line 114 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveButton_Click);

            #line default
            #line hidden
                return;

            case 13:

            #line 120 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.CloseButton_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.UpperDock = ((System.Windows.Controls.Grid)(target));
                return;

            case 15:
                this.DragRectangle = ((System.Windows.Shapes.Rectangle)(target));

            #line 130 "..\..\MainWindow.xaml"
                this.DragRectangle.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.DragRectangle_MouseDown);

            #line default
            #line hidden
                return;

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

            #line 131 "..\..\MainWindow.xaml"
                this.CloseButton.Click += new System.Windows.RoutedEventHandler(this.CloseButton_Click);

            #line default
            #line hidden
                return;

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

            #line 133 "..\..\MainWindow.xaml"
                this.Maximize.Click += new System.Windows.RoutedEventHandler(this.Maximize_Click);

            #line default
            #line hidden
                return;

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

            #line 138 "..\..\MainWindow.xaml"
                this.Restore.Click += new System.Windows.RoutedEventHandler(this.Restore_Click);

            #line default
            #line hidden
                return;

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

            #line 144 "..\..\MainWindow.xaml"
                this.MinimizeButton.Click += new System.Windows.RoutedEventHandler(this.MinimizeButton_Click);

            #line default
            #line hidden
                return;

            case 20:

            #line 145 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Label)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.DragRectangle_MouseDown);

            #line default
            #line hidden
                return;

            case 21:
                this.BottomDock = ((System.Windows.Controls.Grid)(target));
                return;

            case 22:
                this.ClearButton = ((System.Windows.Controls.Button)(target));

            #line 160 "..\..\MainWindow.xaml"
                this.ClearButton.Click += new System.Windows.RoutedEventHandler(this.ClearButton_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.SaveButton = ((System.Windows.Controls.Button)(target));

            #line 161 "..\..\MainWindow.xaml"
                this.SaveButton.Click += new System.Windows.RoutedEventHandler(this.SaveButton_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.UndoButton = ((System.Windows.Controls.Button)(target));

            #line 162 "..\..\MainWindow.xaml"
                this.UndoButton.Click += new System.Windows.RoutedEventHandler(this.UndoButton_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.ColorPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target));

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

            #line default
            #line hidden
                return;

            case 26:
                this.SizeSlider = ((System.Windows.Controls.Slider)(target));

            #line 164 "..\..\MainWindow.xaml"
                this.SizeSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.SizeSlider_ValueChanged);

            #line default
            #line hidden
                return;

            case 27:
                this.label = ((System.Windows.Controls.Label)(target));
                return;

            case 28:
                this.MainGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 29:
                this.SizeInfoLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 30:
                this.EventsGrid = ((System.Windows.Controls.Canvas)(target));

            #line 172 "..\..\MainWindow.xaml"
                this.EventsGrid.MouseMove += new System.Windows.Input.MouseEventHandler(this.EventsGrid_MouseMove);

            #line default
            #line hidden

            #line 172 "..\..\MainWindow.xaml"
                this.EventsGrid.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.EventsGrid_MouseLeftButtonUp);

            #line default
            #line hidden

            #line 172 "..\..\MainWindow.xaml"
                this.EventsGrid.MouseLeave += new System.Windows.Input.MouseEventHandler(this.EventsGrid_MouseLeave);

            #line default
            #line hidden
                return;

            case 31:
                this.MouseDetectionGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 32:
                this.FullscreenButton = ((System.Windows.Controls.Button)(target));

            #line 174 "..\..\MainWindow.xaml"
                this.FullscreenButton.Click += new System.Windows.RoutedEventHandler(this.FullscreenButton_Click);

            #line default
            #line hidden
                return;

            case 33:
                this.FullScreenImage = ((System.Windows.Controls.Image)(target));
                return;

            case 34:
                this.FullscreenClearButton = ((System.Windows.Controls.Button)(target));

            #line 177 "..\..\MainWindow.xaml"
                this.FullscreenClearButton.Click += new System.Windows.RoutedEventHandler(this.ClearButton_Click);

            #line default
            #line hidden
                return;

            case 35:
                this.FullscreenSaveButton = ((System.Windows.Controls.Button)(target));

            #line 178 "..\..\MainWindow.xaml"
                this.FullscreenSaveButton.Click += new System.Windows.RoutedEventHandler(this.SaveButton_Click);

            #line default
            #line hidden
                return;

            case 36:
                this.FullscreenUndoButton = ((System.Windows.Controls.Button)(target));

            #line 179 "..\..\MainWindow.xaml"
                this.FullscreenUndoButton.Click += new System.Windows.RoutedEventHandler(this.UndoButton_Click);

            #line default
            #line hidden
                return;

            case 37:
                this.FullscreenColorPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target));

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

            #line default
            #line hidden
                return;

            case 38:
                this.FullscreenSizeSlider = ((System.Windows.Controls.Slider)(target));

            #line 181 "..\..\MainWindow.xaml"
                this.FullscreenSizeSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.SizeSlider_ValueChanged);

            #line default
            #line hidden
                return;

            case 39:
                this.FullscreenLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 40:
                this.MouseDetectionUpperGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 41:
                this.FullScreenSizeLabel = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }