Ejemplo n.º 1
0
        public async void ConnectAsync(object sender, Windows.UI.Xaml.RoutedEventArgs e)
        {
            if (m_Camera != null)
            {
                Button send = sender as Windows.UI.Xaml.Controls.Button;
                if (send != null)
                {
                    send.IsEnabled = false;
                }

                await m_Camera.connectAsync();

                if (send != null)
                {
                    send.IsEnabled = true;
                }
            }
        }
Ejemplo n.º 2
0
        public async void ConnectAsync(object sender, Windows.UI.Xaml.RoutedEventArgs e)
        {
            OnVifCamera camera = getSelectedCamera();

            if (camera == null)
            {
                Button send = sender as Windows.UI.Xaml.Controls.Button;
                if (send != null)
                {
                    send.IsEnabled = false;
                }

                await camera.connectAsync();

                if (send != null)
                {
                    send.IsEnabled = true;
                }
            }
        }