Example #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window = ((HindiTransliterator.MainWindow)(target));

            #line 8 "..\..\MainWindow.xaml"
                this.window.Closing += new System.ComponentModel.CancelEventHandler(this.window_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.rtb = ((System.Windows.Controls.RichTextBox)(target));

            #line 16 "..\..\MainWindow.xaml"
                this.rtb.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.rtb_PreviewTextInput);

            #line default
            #line hidden

            #line 16 "..\..\MainWindow.xaml"
                this.rtb.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.rtb_PreviewKeyDown);

            #line default
            #line hidden

            #line 16 "..\..\MainWindow.xaml"
                this.rtb.PreviewKeyUp += new System.Windows.Input.KeyEventHandler(this.rtb_PreviewKeyUp);

            #line default
            #line hidden

            #line 16 "..\..\MainWindow.xaml"
                this.rtb.KeyDown += new System.Windows.Input.KeyEventHandler(this.rtb_KeyDown);

            #line default
            #line hidden

            #line 16 "..\..\MainWindow.xaml"
                this.rtb.KeyUp += new System.Windows.Input.KeyEventHandler(this.rtb_KeyUp);

            #line default
            #line hidden

            #line 16 "..\..\MainWindow.xaml"
                this.rtb.TextInput += new System.Windows.Input.TextCompositionEventHandler(this.rtb_TextInput);

            #line default
            #line hidden

            #line 16 "..\..\MainWindow.xaml"
                this.rtb.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.rtb_TextChanged);

            #line default
            #line hidden
                return;

            case 3:

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

            #line default
            #line hidden
                return;

            case 4:

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

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.window = ((HindiTransliterator.MainWindow)(target));
     
     #line 8 "..\..\MainWindow.xaml"
     this.window.Closing += new System.ComponentModel.CancelEventHandler(this.window_Closing);
     
     #line default
     #line hidden
     return;
     case 2:
     this.rtb = ((System.Windows.Controls.RichTextBox)(target));
     
     #line 16 "..\..\MainWindow.xaml"
     this.rtb.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.rtb_PreviewTextInput);
     
     #line default
     #line hidden
     
     #line 16 "..\..\MainWindow.xaml"
     this.rtb.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.rtb_PreviewKeyDown);
     
     #line default
     #line hidden
     
     #line 16 "..\..\MainWindow.xaml"
     this.rtb.PreviewKeyUp += new System.Windows.Input.KeyEventHandler(this.rtb_PreviewKeyUp);
     
     #line default
     #line hidden
     
     #line 16 "..\..\MainWindow.xaml"
     this.rtb.KeyDown += new System.Windows.Input.KeyEventHandler(this.rtb_KeyDown);
     
     #line default
     #line hidden
     
     #line 16 "..\..\MainWindow.xaml"
     this.rtb.KeyUp += new System.Windows.Input.KeyEventHandler(this.rtb_KeyUp);
     
     #line default
     #line hidden
     
     #line 16 "..\..\MainWindow.xaml"
     this.rtb.TextInput += new System.Windows.Input.TextCompositionEventHandler(this.rtb_TextInput);
     
     #line default
     #line hidden
     
     #line 16 "..\..\MainWindow.xaml"
     this.rtb.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.rtb_TextChanged);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 28 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExitMenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 36 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.AboutMenuItem_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }