private void btnAdd_Click(object sender, RoutedEventArgs e) { OpenFileDialog openDialog = new OpenFileDialog(); openDialog.Title = "Vērtējamās datnes"; openDialog.DefaultExt = ".svg"; openDialog.Filter = "Scalable Vector Graphics (*.svg)|*.svg"; openDialog.Multiselect = true; if (openDialog.ShowDialog() == true) { MainManager.AddFilesToEstimate(openDialog.FileNames); btnAdd.Effect = null; lbFilesToEstimate.ItemsSource = MainManager.Estimations; } }