コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.flatbutton = ((Good_Teacher.Controls.FlatButton)(target));

            #line 8 "..\..\..\Controls\FlatButton.xaml"
                this.flatbutton.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.flatbutton_MouseDown);

            #line default
            #line hidden

            #line 8 "..\..\..\Controls\FlatButton.xaml"
                this.flatbutton.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.flatbutton_MouseUp);

            #line default
            #line hidden

            #line 8 "..\..\..\Controls\FlatButton.xaml"
                this.flatbutton.MouseEnter += new System.Windows.Input.MouseEventHandler(this.flatbutton_MouseEnter);

            #line default
            #line hidden

            #line 8 "..\..\..\Controls\FlatButton.xaml"
                this.flatbutton.MouseLeave += new System.Windows.Input.MouseEventHandler(this.flatbutton_MouseLeave);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
        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.CanvasImage = ((System.Windows.Controls.Image)(target));
                return;

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

            case 4:
                this.SizeLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.DeleteButton = ((Good_Teacher.Controls.FlatButton)(target));
                return;

            case 6:
                this.ViewButton = ((Good_Teacher.Controls.FlatButton)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.inkcanvas_C = ((Good_Teacher.Controls.InkCanvas_Control)(target));
                return;

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

            case 3:
                this.Rect_BackColor = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 4:

            #line 23 "..\..\..\Controls\InkCanvas_Control.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonColor_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.CB_PaintSize = ((System.Windows.Controls.ComboBox)(target));

            #line 27 "..\..\..\Controls\InkCanvas_Control.xaml"
                this.CB_PaintSize.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CB_PaintSize_SelectionChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.Button_Draw = ((Good_Teacher.Controls.SelectButton)(target));
                return;

            case 7:
                this.Button_Eraser = ((Good_Teacher.Controls.SelectButton)(target));
                return;

            case 8:
                this.Button_ExportOut = ((Good_Teacher.Controls.FlatButton)(target));
                return;

            case 9:
                this.Button_EraseAll = ((Good_Teacher.Controls.FlatButton)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Toolbar_Editor = ((System.Windows.Controls.ToolBar)(target));
                return;

            case 2:

            #line 21 "..\..\..\..\Pages\Special\Page_TextEdit.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonClose_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.ComboBox_FontSize = ((System.Windows.Controls.ComboBox)(target));

            #line 28 "..\..\..\..\Pages\Special\Page_TextEdit.xaml"
                this.ComboBox_FontSize.AddHandler(System.Windows.Controls.Primitives.TextBoxBase.TextChangedEvent, new System.Windows.Controls.TextChangedEventHandler(this.ComboBox_FontSize_TextChanged));

            #line default
            #line hidden
                return;

            case 4:
                this.Button_FontUp = ((Good_Teacher.Controls.FlatButton)(target));
                return;

            case 5:
                this.Button_FontDown = ((Good_Teacher.Controls.FlatButton)(target));
                return;

            case 6:
                this.Label_font = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.ComboBox_FontName = ((System.Windows.Controls.ComboBox)(target));

            #line 75 "..\..\..\..\Pages\Special\Page_TextEdit.xaml"
                this.ComboBox_FontName.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_FontName_SelectionChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.SButton_Bold = ((Good_Teacher.Controls.SelectButton)(target));
                return;

            case 9:
                this.SButton_Italic = ((Good_Teacher.Controls.SelectButton)(target));
                return;

            case 10:
                this.SButton_Underline = ((Good_Teacher.Controls.SelectButton)(target));
                return;

            case 11:
                this.SButton_Strikeline = ((Good_Teacher.Controls.SelectButton)(target));
                return;

            case 12:
                this.SButton_SuperScript = ((Good_Teacher.Controls.SelectButton)(target));
                return;

            case 13:
                this.SButton_SubScript = ((Good_Teacher.Controls.SelectButton)(target));
                return;

            case 14:
                this.FButton_Undo = ((Good_Teacher.Controls.FlatButton)(target));
                return;

            case 15:
                this.FButton_Redo = ((Good_Teacher.Controls.FlatButton)(target));
                return;

            case 16:
                this.FButton_RTFLoad = ((Good_Teacher.Controls.FlatButton)(target));
                return;

            case 17:
                this.FButton_RTFSave = ((Good_Teacher.Controls.FlatButton)(target));
                return;

            case 18:
                this.ForColor = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 19:
                this.FButton_CPickerF = ((Good_Teacher.Controls.FlatButton)(target));
                return;

            case 20:
                this.FButton_CustomColorFor = ((Good_Teacher.Controls.FlatButton)(target));
                return;

            case 21:
                this.BackColor = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 22:
                this.FButton_CPickerB = ((Good_Teacher.Controls.FlatButton)(target));
                return;

            case 23:
                this.FButton_CustomColorBack = ((Good_Teacher.Controls.FlatButton)(target));
                return;

            case 24:
                this.Button_LeftAlign = ((Good_Teacher.Controls.SelectButton)(target));
                return;

            case 25:
                this.Button_CenterAlign = ((Good_Teacher.Controls.SelectButton)(target));
                return;

            case 26:
                this.Button_RightAlign = ((Good_Teacher.Controls.SelectButton)(target));
                return;

            case 27:
                this.Button_JustifyAlign = ((Good_Teacher.Controls.SelectButton)(target));
                return;

            case 28:
                this.FButton_Hyperlink = ((Good_Teacher.Controls.FlatButton)(target));
                return;

            case 29:
                this.FButton_AddImage = ((Good_Teacher.Controls.FlatButton)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\..\..\Windows\Special\Window_Presentation.xaml"
                ((Good_Teacher.Windows.Special.Window_Presentation)(target)).PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.Window_PreviewKeyDown);

            #line default
            #line hidden

            #line 10 "..\..\..\..\Windows\Special\Window_Presentation.xaml"
                ((Good_Teacher.Windows.Special.Window_Presentation)(target)).PreviewKeyUp += new System.Windows.Input.KeyEventHandler(this.Window_PreviewKeyUp);

            #line default
            #line hidden

            #line 11 "..\..\..\..\Windows\Special\Window_Presentation.xaml"
                ((Good_Teacher.Windows.Special.Window_Presentation)(target)).PreviewMouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.Window_PreviewMouseWheel);

            #line default
            #line hidden
                return;

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

            case 3:
                this.ScrollViewerZoom = ((System.Windows.Controls.ScrollViewer)(target));

            #line 24 "..\..\..\..\Windows\Special\Window_Presentation.xaml"
                this.ScrollViewerZoom.PreviewMouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.ScrollViewerZoom_PreviewMouseWheel);

            #line default
            #line hidden
                return;

            case 4:
                this.viewboxDC = ((System.Windows.Controls.Viewbox)(target));
                return;

            case 5:
                this.Border_CanvasSize = ((System.Windows.Controls.Border)(target));
                return;

            case 6:
                this.PlayCanvas = ((System.Windows.Controls.Canvas)(target));

            #line 30 "..\..\..\..\Windows\Special\Window_Presentation.xaml"
                this.PlayCanvas.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.PlayCanvas_MouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 7:
                this.ControlPanelC = ((System.Windows.Controls.Border)(target));
                return;

            case 8:
                this.SP_InputControls = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 9:
                this.TB_CNumber = ((System.Windows.Controls.TextBox)(target));

            #line 54 "..\..\..\..\Windows\Special\Window_Presentation.xaml"
                this.TB_CNumber.KeyDown += new System.Windows.Input.KeyEventHandler(this.TB_CNumber_KeyDown);

            #line default
            #line hidden

            #line 54 "..\..\..\..\Windows\Special\Window_Presentation.xaml"
                this.TB_CNumber.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.TextBox_PreviewTextInput);

            #line default
            #line hidden

            #line 54 "..\..\..\..\Windows\Special\Window_Presentation.xaml"
                this.TB_CNumber.AddHandler(System.Windows.DataObject.PastingEvent, new System.Windows.DataObjectPastingEventHandler(this.TextBox_Pasting));

            #line default
            #line hidden
                return;

            case 10:
                this.Label_Number = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.FB_PageList = ((Good_Teacher.Controls.FlatButton)(target));
                return;

            case 12:
                this.SliderZoom = ((System.Windows.Controls.Slider)(target));

            #line 58 "..\..\..\..\Windows\Special\Window_Presentation.xaml"
                this.SliderZoom.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.SliderZoom_ValueChanged);

            #line default
            #line hidden
                return;

            case 13:
                this.TextBox_Zoom = ((System.Windows.Controls.TextBox)(target));

            #line 59 "..\..\..\..\Windows\Special\Window_Presentation.xaml"
                this.TextBox_Zoom.LostFocus += new System.Windows.RoutedEventHandler(this.TB_Zoom_LostFocus);

            #line default
            #line hidden

            #line 59 "..\..\..\..\Windows\Special\Window_Presentation.xaml"
                this.TextBox_Zoom.KeyDown += new System.Windows.Input.KeyEventHandler(this.TB_Zoom_KeyDown);

            #line default
            #line hidden
                return;

            case 14:
                this.FB_Left = ((Good_Teacher.Controls.FlatButton)(target));
                return;

            case 15:
                this.FB_Right = ((Good_Teacher.Controls.FlatButton)(target));
                return;

            case 16:
                this.FB_Close = ((Good_Teacher.Controls.FlatButton)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #6
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mediaplayercontroller_C = ((Good_Teacher.Controls.MediaPlayerController_Control)(target));
                return;

            case 2:
                this.ME_MediaPlayer = ((System.Windows.Controls.MediaElement)(target));

            #line 17 "..\..\..\Controls\MediaPlayerController_Control.xaml"
                this.ME_MediaPlayer.Loaded += new System.Windows.RoutedEventHandler(this.ME_MediaPlayer_Loaded);

            #line default
            #line hidden

            #line 17 "..\..\..\Controls\MediaPlayerController_Control.xaml"
                this.ME_MediaPlayer.MediaOpened += new System.Windows.RoutedEventHandler(this.ME_MediaPlayer_MediaOpened);

            #line default
            #line hidden

            #line 17 "..\..\..\Controls\MediaPlayerController_Control.xaml"
                this.ME_MediaPlayer.MediaEnded += new System.Windows.RoutedEventHandler(this.ME_MediaPlayer_MediaEnded);

            #line default
            #line hidden
                return;

            case 3:

            #line 19 "..\..\..\Controls\MediaPlayerController_Control.xaml"
                ((System.Windows.Controls.Border)(target)).Unloaded += new System.Windows.RoutedEventHandler(this.Border_Unloaded);

            #line default
            #line hidden
                return;

            case 4:
                this.G_ControlPanel = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:
                this.PB_TimePlay = ((System.Windows.Controls.ProgressBar)(target));

            #line 29 "..\..\..\Controls\MediaPlayerController_Control.xaml"
                this.PB_TimePlay.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.PB_TimePlay_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 6:
                this.LB_CTime = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 7:
                this.LB_Time = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 8:
                this.FB_PlayPause = ((Good_Teacher.Controls.FlatButton)(target));
                return;

            case 9:
                this.SL_Volume = ((System.Windows.Controls.Slider)(target));

            #line 42 "..\..\..\Controls\MediaPlayerController_Control.xaml"
                this.SL_Volume.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_ValueChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #7
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\MainWindow.xaml"
                ((Good_Teacher_Repairo.MainWindow)(target)).PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.MainWindow_KeyDown);

            #line default
            #line hidden

            #line 11 "..\..\MainWindow.xaml"
                ((Good_Teacher_Repairo.MainWindow)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.Window_SizeChanged);

            #line default
            #line hidden

            #line 11 "..\..\MainWindow.xaml"
                ((Good_Teacher_Repairo.MainWindow)(target)).PreviewMouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.Window_PreviewMouseWheel);

            #line default
            #line hidden
                return;

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

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

            #line 33 "..\..\MainWindow.xaml"
                this.HeaderLine.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.HeaderLine_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 33 "..\..\MainWindow.xaml"
                this.HeaderLine.MouseMove += new System.Windows.Input.MouseEventHandler(this.HeaderLine_MouseMove);

            #line default
            #line hidden
                return;

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

            #line 38 "..\..\MainWindow.xaml"
                this.QuitButton.Click += new System.Windows.RoutedEventHandler(this.QuitButton_Click);

            #line default
            #line hidden
                return;

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

            #line 81 "..\..\MainWindow.xaml"
                this.MaximizeButton.Click += new System.Windows.RoutedEventHandler(this.MaximizeButton_Click);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 7:
                this.L_FileName = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.Toolbar_Main = ((System.Windows.Controls.ToolBar)(target));
                return;

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

            #line 181 "..\..\MainWindow.xaml"
                this.MenuItem_Open.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Open_Click);

            #line default
            #line hidden
                return;

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

            #line 188 "..\..\MainWindow.xaml"
                this.MenuItem_Save.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Save_Click);

            #line default
            #line hidden
                return;

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

            #line 193 "..\..\MainWindow.xaml"
                this.MenuItem_SaveAs.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Save_Click);

            #line default
            #line hidden
                return;

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

            #line 197 "..\..\MainWindow.xaml"
                this.MenuItem_Print.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Print_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.MenuItem_Export = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 14:

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

            #line default
            #line hidden
                return;

            case 15:

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

            #line default
            #line hidden
                return;

            case 16:

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

            #line default
            #line hidden
                return;

            case 17:

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

            #line default
            #line hidden
                return;

            case 18:

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

            #line default
            #line hidden
                return;

            case 19:

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

            #line default
            #line hidden
                return;

            case 20:
                this.MenuItem_Close = ((System.Windows.Controls.MenuItem)(target));

            #line 264 "..\..\MainWindow.xaml"
                this.MenuItem_Close.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Close_Click);

            #line default
            #line hidden
                return;

            case 21:

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

            #line default
            #line hidden
                return;

            case 22:

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

            #line default
            #line hidden
                return;

            case 23:

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

            #line default
            #line hidden
                return;

            case 24:

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

            #line default
            #line hidden
                return;

            case 25:
                this.MenuItem_About = ((System.Windows.Controls.MenuItem)(target));

            #line 316 "..\..\MainWindow.xaml"
                this.MenuItem_About.Click += new System.Windows.RoutedEventHandler(this.MenuItem_About_Click);

            #line default
            #line hidden
                return;

            case 26:

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

            #line default
            #line hidden
                return;

            case 27:

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

            #line default
            #line hidden
                return;

            case 28:
                this.ScrollViewer_TestList = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 29:
                this.Stack_TestList = ((System.Windows.Controls.VirtualizingStackPanel)(target));
                return;

            case 30:

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

            #line default
            #line hidden
                return;

            case 31:

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

            #line default
            #line hidden
                return;

            case 32:

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

            #line default
            #line hidden
                return;

            case 33:
                this.Item_Export = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 34:

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

            #line default
            #line hidden
                return;

            case 35:

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

            #line default
            #line hidden
                return;

            case 36:

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

            #line default
            #line hidden
                return;

            case 37:

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

            #line default
            #line hidden
                return;

            case 38:

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

            #line default
            #line hidden
                return;

            case 39:

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

            #line default
            #line hidden
                return;

            case 40:

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

            #line default
            #line hidden
                return;

            case 41:

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

            #line default
            #line hidden
                return;

            case 42:
                this.Rect_BackColor = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 43:

            #line 519 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonColor_Click);

            #line default
            #line hidden
                return;

            case 44:
                this.CB_PaintSize = ((System.Windows.Controls.ComboBox)(target));

            #line 523 "..\..\MainWindow.xaml"
                this.CB_PaintSize.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CB_PaintSize_SelectionChanged);

            #line default
            #line hidden
                return;

            case 45:
                this.Button_Cursor = ((Good_Teacher.Controls.SelectButton)(target));

            #line 552 "..\..\MainWindow.xaml"
                this.Button_Cursor.OnCheckChanged += new Good_Teacher.Controls.SelectButton.CheckedChanged(this.Button_Cursor_OnCheckChanged);

            #line default
            #line hidden
                return;

            case 46:
                this.Button_Draw = ((Good_Teacher.Controls.SelectButton)(target));

            #line 553 "..\..\MainWindow.xaml"
                this.Button_Draw.OnCheckChanged += new Good_Teacher.Controls.SelectButton.CheckedChanged(this.Button_Draw_OnCheckChanged);

            #line default
            #line hidden
                return;

            case 47:
                this.Button_Eraser = ((Good_Teacher.Controls.SelectButton)(target));

            #line 554 "..\..\MainWindow.xaml"
                this.Button_Eraser.OnCheckChanged += new Good_Teacher.Controls.SelectButton.CheckedChanged(this.Button_Eraser_OnCheckChanged);

            #line default
            #line hidden
                return;

            case 48:
                this.Button_EraseAll = ((Good_Teacher.Controls.FlatButton)(target));

            #line 557 "..\..\MainWindow.xaml"
                this.Button_EraseAll.Click += new Good_Teacher.Controls.FlatButton.OnClick(this.Button_EraseAll_Click);

            #line default
            #line hidden
                return;

            case 49:
                this.ControlInputPanel = ((System.Windows.Controls.VirtualizingStackPanel)(target));
                return;

            case 50:
                this.ScrollViewerZoom = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 51:
                this.viewboxDC = ((System.Windows.Controls.Viewbox)(target));
                return;

            case 52:
                this.BorderWindowSize = ((System.Windows.Controls.Border)(target));
                return;

            case 53:
                this.DesignCanvas = ((System.Windows.Controls.InkCanvas)(target));
                return;

            case 54:
                this.SliderZoom = ((System.Windows.Controls.Slider)(target));

            #line 599 "..\..\MainWindow.xaml"
                this.SliderZoom.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.SliderZoom_ValueChanged);

            #line default
            #line hidden
                return;

            case 55:
                this.TextBox_Zoom = ((System.Windows.Controls.TextBox)(target));

            #line 600 "..\..\MainWindow.xaml"
                this.TextBox_Zoom.LostFocus += new System.Windows.RoutedEventHandler(this.TB_Zoom_LostFocus);

            #line default
            #line hidden

            #line 600 "..\..\MainWindow.xaml"
                this.TextBox_Zoom.KeyDown += new System.Windows.Input.KeyEventHandler(this.TB_Zoom_KeyDown);

            #line default
            #line hidden
                return;

            case 56:

            #line 601 "..\..\MainWindow.xaml"
                ((Good_Teacher.Controls.FlatButton)(target)).Click += new Good_Teacher.Controls.FlatButton.OnClick(this.FlatButtonZoomCancel_Click);

            #line default
            #line hidden
                return;

            case 57:
                this.Notification = ((System.Windows.Controls.Border)(target));
                return;

            case 58:
                this.NotificationLabel = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #8
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Label_font = ((System.Windows.Controls.Label)(target));
                return;

            case 2:
                this.ComboBox_FontName = ((System.Windows.Controls.ComboBox)(target));

            #line 15 "..\..\..\..\Controls\Special\FontEditorPanel.xaml"
                this.ComboBox_FontName.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_FontName_SelectionChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.ComboBox_FontSize = ((System.Windows.Controls.ComboBox)(target));

            #line 21 "..\..\..\..\Controls\Special\FontEditorPanel.xaml"
                this.ComboBox_FontSize.AddHandler(System.Windows.Controls.Primitives.TextBoxBase.TextChangedEvent, new System.Windows.Controls.TextChangedEventHandler(this.ComboBox_FontSize_TextChanged));

            #line default
            #line hidden
                return;

            case 4:
                this.Button_FontUp = ((Good_Teacher.Controls.FlatButton)(target));
                return;

            case 5:
                this.Button_FontDown = ((Good_Teacher.Controls.FlatButton)(target));
                return;

            case 6:
                this.SButton_Bold = ((Good_Teacher.Controls.SelectButton)(target));
                return;

            case 7:
                this.SButton_Italic = ((Good_Teacher.Controls.SelectButton)(target));
                return;

            case 8:
                this.AlignmentPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 9:
                this.Button_VTopAlign = ((Good_Teacher.Controls.SelectButton)(target));
                return;

            case 10:
                this.Button_VCenterAlign = ((Good_Teacher.Controls.SelectButton)(target));
                return;

            case 11:
                this.Button_VBottomAlign = ((Good_Teacher.Controls.SelectButton)(target));
                return;

            case 12:
                this.Button_LeftAlign = ((Good_Teacher.Controls.SelectButton)(target));
                return;

            case 13:
                this.Button_CenterAlign = ((Good_Teacher.Controls.SelectButton)(target));
                return;

            case 14:
                this.Button_RightAlign = ((Good_Teacher.Controls.SelectButton)(target));
                return;
            }
            this._contentLoaded = true;
        }