Esempio n. 1
0
        private void ButOpenFolderDest_Click(object sender, RoutedEventArgs e)
        {
            FolderAsk rab = new FolderAsk(1, DestinationFolder);

            rab.ShowDialog();
            DestinationFolder = rab.keepstr;
            rab.Close();
        }
Esempio n. 2
0
        private void ButOpenFolder_Click(object sender, RoutedEventArgs e)
        {
            FolderAsk rab = new FolderAsk(0, SourceFolder);

            rab.ShowDialog();
            SourceFolder = rab.keepstr;
            rab.Close();
            SFolderOk = Directory.Exists(SourceFolder);
            if (SFolderOk)
            {
                ListFile = Directory.GetFiles(SourceFolder);


                var bitmap = new BitmapImage();
                bitmap.BeginInit();
                bitmap.UriSource   = new Uri(@ListFile[0]);
                bitmap.CacheOption = BitmapCacheOption.OnLoad;
                bitmap.EndInit();
                var imgBrush = new ImageBrush();


                Image1.Source = bitmap;
            }
        }