Ejemplo n.º 1
0
 public LoginWindow(CloudAPI cloud)
 {
     InitializeComponent();
     UserInput.Focus();
     this.cloud           = cloud;
     ErrorText.Visibility = Visibility.Hidden;
 }
        public DeviceWindow()
        {
            InitializeComponent();

            // Initialize cloud API
            string ApiKey = File.ReadAllText(PATH);

            Api = new CloudAPI(ApiKey);

            // Initialize login components
            //LoginWindow lw = new LoginWindow(Api);

            //lw.ShowDialog();
            Api.Login("*****@*****.**", "Lascarsedi12");
            Console.WriteLine(Api.GetStatus());
            Console.WriteLine(Api.GetDeviceList());
        }