/// <summary> /// Send login data to cloud /// </summary> private void Button_Click(object sender, RoutedEventArgs e) { string email = UserInput.Text; string password = PasswordInput.Password.ToString(); if (cloud.Login(email, password) == true) { ClickedX = false; Close(); } else { ErrorText.Visibility = Visibility.Visible; } }
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()); }