Esempio n. 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 6 "..\..\MainWindow.xaml"
                ((UnderTranslator.MainWindow)(target)).PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.MetroWindow_PreviewMouseDown);

            #line default
            #line hidden

            #line 6 "..\..\MainWindow.xaml"
                ((UnderTranslator.MainWindow)(target)).PreviewMouseUp += new System.Windows.Input.MouseButtonEventHandler(this.MetroWindow_PreviewMouseUp);

            #line default
            #line hidden

            #line 6 "..\..\MainWindow.xaml"
                ((UnderTranslator.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.MenuItem_Click_3);

            #line default
            #line hidden
                return;

            case 2:

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

            #line default
            #line hidden
                return;

            case 3:

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

            #line default
            #line hidden
                return;

            case 4:

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

            #line default
            #line hidden
                return;

            case 5:

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

            #line default
            #line hidden
                return;

            case 6:

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

            #line default
            #line hidden
                return;

            case 7:

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

            #line default
            #line hidden
                return;

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

            case 9:

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

            #line default
            #line hidden
                return;

            case 10:

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

            #line default
            #line hidden
                return;

            case 11:

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

            #line default
            #line hidden
                return;

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

            #line 37 "..\..\MainWindow.xaml"
                this.search.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.search_PreviewKeyDown);

            #line default
            #line hidden
                return;

            case 13:
                this.enterAfterPaste = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 14:
                this.lab = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.datagrid = ((System.Windows.Controls.DataGrid)(target));

            #line 47 "..\..\MainWindow.xaml"
                this.datagrid.SizeChanged += new System.Windows.SizeChangedEventHandler(this.datagrid_SizeChanged);

            #line default
            #line hidden

            #line 47 "..\..\MainWindow.xaml"
                this.datagrid.PreviewMouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.datagrid_PreviewMouseWheel);

            #line default
            #line hidden

            #line 47 "..\..\MainWindow.xaml"
                this.datagrid.PreviewKeyUp += new System.Windows.Input.KeyEventHandler(this.datagrid_PreviewKeyUp);

            #line default
            #line hidden

            #line 47 "..\..\MainWindow.xaml"
                this.datagrid.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.datagrid_PreviewKeyDown);

            #line default
            #line hidden

            #line 47 "..\..\MainWindow.xaml"
                this.datagrid.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.datagrid_SelectionChanged);

            #line default
            #line hidden
                return;

            case 16:
                this.scr = ((System.Windows.Controls.Primitives.ScrollBar)(target));

            #line 54 "..\..\MainWindow.xaml"
                this.scr.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.ScrollBar_ValueChanged);

            #line default
            #line hidden

            #line 54 "..\..\MainWindow.xaml"
                this.scr.PreviewMouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.datagrid_PreviewMouseWheel);

            #line default
            #line hidden
                return;

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

            #line 58 "..\..\MainWindow.xaml"
                this.editField.PreviewKeyUp += new System.Windows.Input.KeyEventHandler(this.datagrid_PreviewKeyUp);

            #line default
            #line hidden

            #line 58 "..\..\MainWindow.xaml"
                this.editField.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.datagrid_PreviewKeyDown);

            #line default
            #line hidden

            #line 58 "..\..\MainWindow.xaml"
                this.editField.PreviewMouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.datagrid_PreviewMouseWheel);

            #line default
            #line hidden

            #line 58 "..\..\MainWindow.xaml"
                this.editField.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.editField_TextChanged);

            #line default
            #line hidden
                return;

            case 18:
                this.gotoID = ((MahApps.Metro.Controls.NumericUpDown)(target));

            #line 59 "..\..\MainWindow.xaml"
                this.gotoID.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.NumericUpDown_PreviewKeyDown);

            #line default
            #line hidden

            #line 59 "..\..\MainWindow.xaml"
                this.gotoID.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <System.Nullable <double> >(this.gotoID_ValueChanged);

            #line default
            #line hidden
                return;

            case 19:
                this.txtViewer = ((UnderTranslator.UTextViewer)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 6 "..\..\MainWindow.xaml"
     ((UnderTranslator.MainWindow)(target)).PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.MetroWindow_PreviewMouseDown);
     
     #line default
     #line hidden
     
     #line 6 "..\..\MainWindow.xaml"
     ((UnderTranslator.MainWindow)(target)).PreviewMouseUp += new System.Windows.Input.MouseButtonEventHandler(this.MetroWindow_PreviewMouseUp);
     
     #line default
     #line hidden
     
     #line 6 "..\..\MainWindow.xaml"
     ((UnderTranslator.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.MenuItem_Click_3);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 10 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_2);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 11 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 13 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_3);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 17 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_1);
     
     #line default
     #line hidden
     return;
     case 6:
     
     #line 19 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_6);
     
     #line default
     #line hidden
     return;
     case 7:
     
     #line 20 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_5);
     
     #line default
     #line hidden
     return;
     case 8:
     this.menu_about = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 9:
     
     #line 23 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.menu_about_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     
     #line 25 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_4);
     
     #line default
     #line hidden
     return;
     case 11:
     
     #line 26 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_7);
     
     #line default
     #line hidden
     return;
     case 12:
     this.search = ((System.Windows.Controls.TextBox)(target));
     
     #line 37 "..\..\MainWindow.xaml"
     this.search.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.search_PreviewKeyDown);
     
     #line default
     #line hidden
     return;
     case 13:
     this.enterAfterPaste = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 14:
     this.lab = ((System.Windows.Controls.Label)(target));
     return;
     case 15:
     this.datagrid = ((System.Windows.Controls.DataGrid)(target));
     
     #line 47 "..\..\MainWindow.xaml"
     this.datagrid.SizeChanged += new System.Windows.SizeChangedEventHandler(this.datagrid_SizeChanged);
     
     #line default
     #line hidden
     
     #line 47 "..\..\MainWindow.xaml"
     this.datagrid.PreviewMouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.datagrid_PreviewMouseWheel);
     
     #line default
     #line hidden
     
     #line 47 "..\..\MainWindow.xaml"
     this.datagrid.PreviewKeyUp += new System.Windows.Input.KeyEventHandler(this.datagrid_PreviewKeyUp);
     
     #line default
     #line hidden
     
     #line 47 "..\..\MainWindow.xaml"
     this.datagrid.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.datagrid_PreviewKeyDown);
     
     #line default
     #line hidden
     
     #line 47 "..\..\MainWindow.xaml"
     this.datagrid.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.datagrid_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 16:
     this.scr = ((System.Windows.Controls.Primitives.ScrollBar)(target));
     
     #line 54 "..\..\MainWindow.xaml"
     this.scr.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.ScrollBar_ValueChanged);
     
     #line default
     #line hidden
     
     #line 54 "..\..\MainWindow.xaml"
     this.scr.PreviewMouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.datagrid_PreviewMouseWheel);
     
     #line default
     #line hidden
     return;
     case 17:
     this.editField = ((System.Windows.Controls.TextBox)(target));
     
     #line 58 "..\..\MainWindow.xaml"
     this.editField.PreviewKeyUp += new System.Windows.Input.KeyEventHandler(this.datagrid_PreviewKeyUp);
     
     #line default
     #line hidden
     
     #line 58 "..\..\MainWindow.xaml"
     this.editField.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.datagrid_PreviewKeyDown);
     
     #line default
     #line hidden
     
     #line 58 "..\..\MainWindow.xaml"
     this.editField.PreviewMouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.datagrid_PreviewMouseWheel);
     
     #line default
     #line hidden
     
     #line 58 "..\..\MainWindow.xaml"
     this.editField.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.editField_TextChanged);
     
     #line default
     #line hidden
     return;
     case 18:
     this.gotoID = ((MahApps.Metro.Controls.NumericUpDown)(target));
     
     #line 59 "..\..\MainWindow.xaml"
     this.gotoID.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.NumericUpDown_PreviewKeyDown);
     
     #line default
     #line hidden
     
     #line 59 "..\..\MainWindow.xaml"
     this.gotoID.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Nullable<double>>(this.gotoID_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 19:
     this.txtViewer = ((UnderTranslator.UTextViewer)(target));
     return;
     }
     this._contentLoaded = true;
 }