Ejemplo n.º 1
0
        public MainPage()
        {
            this.InitializeComponent();

            this.NavigationCacheMode = NavigationCacheMode.Required;

            ortcExample = new OrtcExample();

            ConsoleGrid.DataContext = ortcExample;

            BtConnectDisconnect.Click += ortcExample.DoConnectDisconnect;
            BtSend.Click        += ortcExample.DoSendMessage;
            BtSubscribe.Click   += ortcExample.DoSubscribe;
            BtUnsubscribe.Click += ortcExample.DoUnsubscribe;
        }
Ejemplo n.º 2
0
        public MainPage()
        {
            this.InitializeComponent();

            SetControls(ConsoleState.Connection);

            ortcExample = new OrtcExample();

            ConsoleGrid.DataContext = ortcExample;

            BtConnect.Click += ortcExample.DoConnect;
            BtDisconnect.Click += ortcExample.DoDisconnect;
            BtSend.Click += ortcExample.DoSendMessage;
            BtSubscribe.Click += ortcExample.DoSubscribe;
            BtUnsubscribe.Click += ortcExample.DoUnsubscribe;
            BtGetPresence.Click += ortcExample.DoGetPresence;
            BtEnablePresence.Click += ortcExample.DoEnablePresence;
            BtDisablePresence.Click += ortcExample.DoDisablePresence;
            BtAuthenticate.Click += ortcExample.DoSaveAuthentication;

            BtConnection.Click += BtConnection_Click;
            BtAuthentication.Click += BtAuthentication_Click;
            BtPresence.Click += BtPresence_Click;
        }