Ejemplo n.º 1
0
 private void Button_Click_4(object sender, RoutedEventArgs e)
 {
     dg_newV.IsOpen = false;
     ImagenesDG.Columns[5].Visibility = Visibility.Visible;
     NewName.Clear();
     NewDataPath.Clear();
     AddSVG(files);
 }
Ejemplo n.º 2
0
 private void Button_Click_1(object sender, RoutedEventArgs e)
 {
     if (NewName.Text != "")
     {
         ImgsCRUD.InsertIMG(NewName.Text, NewDataPath.Text);
         ImagenesDG.ItemsSource = ImgsCRUD.FilterImg("").DefaultView;
         ScrollViewer scrollViewer = GetVisualChild <ScrollViewer>(ImagenesDG);
         if (scrollViewer != null)
         {
             scrollViewer.ScrollToTop();
         }
         myMessageQueue = new SnackbarMessageQueue(TimeSpan.FromMilliseconds(1000));
         SnackBar_Mesaage.MessageQueue = myMessageQueue;
         SnackBar_Mesaage.MessageQueue.Enqueue("Ingresado a DB");
         NewName.Clear();
         NewDataPath.Clear();
         ImagenesDG.Columns[5].Visibility = Visibility.Visible;
         AddSVG(files);
     }
 }