Beispiel #1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            image.Source = new BitmapImage();

            List<string> args = new List<string>(Environment.GetCommandLineArgs());
            args.RemoveAt(0);
            args = args.Union(DirPictures()).ToList();
            foreach (string a in args)
                gallery.Add(a);

            LoadPicture(gallery.Get());
        }