public async void AddCamera() { await UnknownCameraViewModel.AddNewCamera(); AddCameraFlyout.Hide(); Country.Text = ""; City.Text = ""; Latitude.Text = "0.0"; Longitude.Text = "0.0"; AddButtonIcon.Glyph = "\xE73E"; AddButton.IsEnabled = false; ContentDialog dialog = new ContentDialog(); dialog.Content = resourceLoader.GetString("CameraHasBeenAdded"); dialog.CloseButtonText = "OK"; await dialog.ShowAsync(); }
private void TextBoxLostFocus(object sender, RoutedEventArgs e) { Done.Command = new ButtonCommand(new Action(AddCamera), () => UnknownCameraViewModel.IsValid()); }