private void Pranesimas_Button(object sender, RoutedEventArgs e) { Loading(); IsEnabled = false; Pranesimai pranesimai = new Pranesimai(vartotojasSaved, keySaved); pranesimai.Show(); Close(); }
private async void DeleteButton(object sender, RoutedEventArgs e) { Button button = sender as Button; IsEnabled = false; Loading(); int nr = int.Parse(button.Name[13].ToString()); vartotojasSaved.Pranesimai.RemoveAt(nr); await client.UpdateAsync("Paskyros/" + keySaved, vartotojasSaved); var pranesimai = new Pranesimai(vartotojasSaved, keySaved); pranesimai.Show(); Close(); }