Ejemplo n.º 1
0
        private void JoinButton_Click(object sender, RoutedEventArgs e)
        {
            string            channel = "", user = "";
            JoinChannelWindow subWindow = new JoinChannelWindow((C, U) => { channel = C; user = U; });

            subWindow.ShowDialog();
            if (channel == "" && user == "")
            {
                return;
            }
            if (m_engine.joinChannel("", channel + "_" + user, "", 0) == 0)
            {
                m_joined = true;
                SwitchAudioRecording();
            }
        }
Ejemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.thisWindow = ((AvalancheDemo.JoinChannelWindow)(target));
                return;

            case 2:
                this.channelNameLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.channelNameText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.userNameLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.userNameText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:

            #line 24 "..\..\JoinChannelWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddButton_Click);

            #line default
            #line hidden
                return;

            case 7:

            #line 25 "..\..\JoinChannelWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CancelButton_Click);

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