Exemplo n.º 1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Menu = ((InstrClient.MenuControl)(target));
     return;
     case 2:
     this.MainMenu = ((System.Windows.Controls.Menu)(target));
     return;
     case 3:
     this.SettingsMenu = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 4:
     this.ConfigSettings = ((System.Windows.Controls.MenuItem)(target));
     
     #line 12 "..\..\MenuControl.xaml"
     this.ConfigSettings.Click += new System.Windows.RoutedEventHandler(this.ConfigSettings_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.AccountSettings = ((System.Windows.Controls.MenuItem)(target));
     
     #line 13 "..\..\MenuControl.xaml"
     this.AccountSettings.Click += new System.Windows.RoutedEventHandler(this.AccountSettings_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.StartMenu = ((System.Windows.Controls.MenuItem)(target));
     
     #line 15 "..\..\MenuControl.xaml"
     this.StartMenu.Click += new System.Windows.RoutedEventHandler(this.StartMenu_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.QuitMenu = ((System.Windows.Controls.MenuItem)(target));
     
     #line 16 "..\..\MenuControl.xaml"
     this.QuitMenu.Click += new System.Windows.RoutedEventHandler(this.QuitMenu_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.AboutMenu = ((System.Windows.Controls.MenuItem)(target));
     
     #line 17 "..\..\MenuControl.xaml"
     this.AboutMenu.Click += new System.Windows.RoutedEventHandler(this.AboutMenu_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Exemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Menu = ((InstrClient.MenuControl)(target));
                return;

            case 2:
                this.MainMenu = ((System.Windows.Controls.Menu)(target));
                return;

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

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

            #line 12 "..\..\MenuControl.xaml"
                this.ConfigSettings.Click += new System.Windows.RoutedEventHandler(this.ConfigSettings_Click);

            #line default
            #line hidden
                return;

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

            #line 13 "..\..\MenuControl.xaml"
                this.AccountSettings.Click += new System.Windows.RoutedEventHandler(this.AccountSettings_Click);

            #line default
            #line hidden
                return;

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

            #line 15 "..\..\MenuControl.xaml"
                this.StartMenu.Click += new System.Windows.RoutedEventHandler(this.StartMenu_Click);

            #line default
            #line hidden
                return;

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

            #line 16 "..\..\MenuControl.xaml"
                this.QuitMenu.Click += new System.Windows.RoutedEventHandler(this.QuitMenu_Click);

            #line default
            #line hidden
                return;

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

            #line 17 "..\..\MenuControl.xaml"
                this.AboutMenu.Click += new System.Windows.RoutedEventHandler(this.AboutMenu_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }