Exemple #1
0
        private void Pranesimas_Button(object sender, RoutedEventArgs e)
        {
            Loading();
            IsEnabled = false;
            Pranesimai pranesimai = new Pranesimai(vartotojasSaved, keySaved);

            pranesimai.Show();
            Close();
        }
Exemple #2
0
        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();
        }