public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SenderApplication1;component/Page.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.button1    = ((System.Windows.Controls.Button)(this.FindName("button1")));
     this.textBox1   = ((System.Windows.Controls.TextBox)(this.FindName("textBox1")));
     this.IMButton   = ((Microsoft.Lync.Controls.StartInstantMessagingButton)(this.FindName("IMButton")));
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.cboContacts = ((System.Windows.Controls.ComboBox)(target));

            #line 18 "..\..\Window1.xaml"
                this.cboContacts.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboContacts_SelectionChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.lyncPresence = ((Microsoft.Lync.Controls.PresenceIndicator)(target));
                return;

            case 3:
                this.lyncStartMessage = ((Microsoft.Lync.Controls.StartInstantMessagingButton)(target));
                return;

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

            #line 24 "..\..\Window1.xaml"
                this.btnConversationStart.Click += new System.Windows.RoutedEventHandler(this.btnConversationStart_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.lyncCustomList = ((Microsoft.Lync.Controls.CustomContactList)(target));
                return;

            case 6:
                this.formHost = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
                return;

            case 7:
                this.formPanel = ((System.Windows.Forms.Panel)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #3
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.accountsList = ((System.Windows.Controls.ListBox)(target));
     
     #line 17 "..\..\Window1.xaml"
     this.accountsList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.accountsList_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 2:
     this.secondaryLabUser = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 3:
     this.presenceIndicator = ((Microsoft.Lync.Controls.PresenceIndicator)(target));
     return;
     case 4:
     this.startInstantMessagingButton = ((Microsoft.Lync.Controls.StartInstantMessagingButton)(target));
     return;
     case 5:
     this.startAudioCallButton = ((Microsoft.Lync.Controls.StartAudioCallButton)(target));
     return;
     }
     this._contentLoaded = true;
 }