コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 12 "..\..\..\MainWindow.xaml"
                ((Preview.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 12 "..\..\..\MainWindow.xaml"
                ((Preview.MainWindow)(target)).Closed += new System.EventHandler(this.Window_Closed);

            #line default
            #line hidden
                return;

            case 2:
                this.Open = ((System.Windows.Controls.MenuItem)(target));

            #line 26 "..\..\..\MainWindow.xaml"
                this.Open.Click += new System.Windows.RoutedEventHandler(this.Open_Click);

            #line default
            #line hidden
                return;

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

            #line 27 "..\..\..\MainWindow.xaml"
                this.NewProject.Click += new System.Windows.RoutedEventHandler(this.NewProject_Click);

            #line default
            #line hidden
                return;

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

            #line 28 "..\..\..\MainWindow.xaml"
                this.Save.Click += new System.Windows.RoutedEventHandler(this.Save_Click);

            #line default
            #line hidden
                return;

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

            #line 30 "..\..\..\MainWindow.xaml"
                this.Import.Click += new System.Windows.RoutedEventHandler(this.Import_Click);

            #line default
            #line hidden
                return;

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

            #line 31 "..\..\..\MainWindow.xaml"
                this.Export.Click += new System.Windows.RoutedEventHandler(this.Export_Click);

            #line default
            #line hidden
                return;

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

            #line 36 "..\..\..\MainWindow.xaml"
                this.Help.Click += new System.Windows.RoutedEventHandler(this.Help_Click);

            #line default
            #line hidden
                return;

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

            #line 39 "..\..\..\MainWindow.xaml"
                this.OpenPlayer.Click += new System.Windows.RoutedEventHandler(this.OpenPlayer_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.FileList = ((System.Windows.Controls.DataGrid)(target));

            #line 56 "..\..\..\MainWindow.xaml"
                this.FileList.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.FileList_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 10:
                this.Name = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 11:
                this.Format = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 12:
                this.Size = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 13:
                this.Path = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 14:
                this.PictureBox = ((System.Windows.Forms.PictureBox)(target));
                return;

            case 15:
                this.StopPriViewBtn = ((System.Windows.Controls.Button)(target));

            #line 79 "..\..\..\MainWindow.xaml"
                this.StopPriViewBtn.Click += new System.Windows.RoutedEventHandler(this.StopPriViewBtn_Click);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 18:
                this.Tools = ((Preview.ToolsBar)(target));
                return;

            case 19:
                this.wfh = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
                return;

            case 20:
                this.axTimeLine = ((AxTimelineAxLib.AxTimelineControl)(target));

            #line 97 "..\..\..\MainWindow.xaml"
                this.axTimeLine.OnClickClip += new AxTimelineAxLib._ITimelineControlEvents_OnClickClipEventHandler(this.AxTimeLine_OnClickClip);

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

            #line 12 "..\..\..\MainWindow.xaml"
                ((Preview.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.Import = ((System.Windows.Controls.MenuItem)(target));

            #line 30 "..\..\..\MainWindow.xaml"
                this.Import.Click += new System.Windows.RoutedEventHandler(this.Import_Click);

            #line default
            #line hidden
                return;

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

            #line 31 "..\..\..\MainWindow.xaml"
                this.Export.Click += new System.Windows.RoutedEventHandler(this.Export_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.FileList = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 5:
                this.Name = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 6:
                this.Format = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 7:
                this.Size = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 8:
                this.Path = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 9:
                this.PictureBox = ((System.Windows.Forms.PictureBox)(target));
                return;

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

            case 11:
                this.BackPriviewBtn = ((System.Windows.Controls.Button)(target));

            #line 79 "..\..\..\MainWindow.xaml"
                this.BackPriviewBtn.Click += new System.Windows.RoutedEventHandler(this.BackPriviewBtn_Click);

            #line default
            #line hidden

            #line 79 "..\..\..\MainWindow.xaml"
                this.BackPriviewBtn.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.BackPriviewBtn_MouseDown);

            #line default
            #line hidden
                return;

            case 12:
                this.StopPriViewBtn = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

            case 13:
                this.PlayPriviewBtn = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

            case 14:
                this.PausePriviewBtn = ((System.Windows.Controls.Button)(target));

            #line 82 "..\..\..\MainWindow.xaml"
                this.PausePriviewBtn.Click += new System.Windows.RoutedEventHandler(this.PausePriviewBtn_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.NextPriviewBtn = ((System.Windows.Controls.Button)(target));

            #line 83 "..\..\..\MainWindow.xaml"
                this.NextPriviewBtn.Click += new System.Windows.RoutedEventHandler(this.NextPriviewBtn_Click);

            #line default
            #line hidden

            #line 83 "..\..\..\MainWindow.xaml"
                this.NextPriviewBtn.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.BackPriviewBtn_MouseDown);

            #line default
            #line hidden
                return;

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

            #line 84 "..\..\..\MainWindow.xaml"
                this.MutePriviewBtn.Click += new System.Windows.RoutedEventHandler(this.MutePriviewBtn_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.wfh = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
                return;

            case 18:
                this.axTimeLine = ((AxTimelineAxLib.AxTimelineControl)(target));
                return;
            }
            this._contentLoaded = true;
        }