Example #1
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        public SurfaceWindow1()
        {
            InitializeComponent();

            DataContext = this;
            GifType catGifs = new GifType("Cat GIFs", "Often short clips of cats doing crazy and bizarre stuff");
            catGifs.GIFs.Add("Resources/cat1.gif");
            catGifs.GIFs.Add("Resources/cat2.gif");
            GifType dogGifs = new GifType("Dog GIFs", "Dog gifs often contain dogs trying to prove they are better and cuter than cats, however they almost always fail to capture the awesomeness that cats bring");
            dogGifs.GIFs.Add("Resources/dog1.gif");
            dogGifs.GIFs.Add("Resources/dog2.gif");
            GifType winGifs = new GifType("Win GIFs", "Short clips of people who have mastered life in every way, they are the supreme beings among us");
            winGifs.GIFs.Add("Resources/win1.gif");
            winGifs.GIFs.Add("Resources/win2.gif");
            GifType failGifs = new GifType("Fail GIFs", "These clips feature people who are very much NOT the supreme beings among us");
            failGifs.GIFs.Add("Resources/fail1.gif");
            failGifs.GIFs.Add("Resources/fail2.gif");
            GifType coolGifs = new GifType("Cool GIFs", "These are clips of things, be they real or fake, but are all rather cool");
            coolGifs.GIFs.Add("Resources/cool1.gif");
            coolGifs.GIFs.Add("Resources/cool2.gif");
            GifTypes.Add(catGifs);
            GifTypes.Add(dogGifs);
            GifTypes.Add(winGifs);
            GifTypes.Add(failGifs);
            GifTypes.Add(coolGifs);

            // Add handlers for window availability events
            AddWindowAvailabilityHandlers();
        }
Example #2
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        public SurfaceWindow1()
        {
            InitializeComponent();

            DataContext = this;
            GifType catGifs = new GifType("Cat GIFs", "Often short clips of cats doing crazy and bizarre stuff");

            catGifs.GIFs.Add("Resources/cat1.gif");
            catGifs.GIFs.Add("Resources/cat2.gif");
            GifType dogGifs = new GifType("Dog GIFs", "Dog gifs often contain dogs trying to prove they are better and cuter than cats, however they almost always fail to capture the awesomeness that cats bring");

            dogGifs.GIFs.Add("Resources/dog1.gif");
            dogGifs.GIFs.Add("Resources/dog2.gif");
            GifType winGifs = new GifType("Win GIFs", "Short clips of people who have mastered life in every way, they are the supreme beings among us");

            winGifs.GIFs.Add("Resources/win1.gif");
            winGifs.GIFs.Add("Resources/win2.gif");
            GifType failGifs = new GifType("Fail GIFs", "These clips feature people who are very much NOT the supreme beings among us");

            failGifs.GIFs.Add("Resources/fail1.gif");
            failGifs.GIFs.Add("Resources/fail2.gif");
            GifType coolGifs = new GifType("Cool GIFs", "These are clips of things, be they real or fake, but are all rather cool");

            coolGifs.GIFs.Add("Resources/cool1.gif");
            coolGifs.GIFs.Add("Resources/cool2.gif");
            GifTypes.Add(catGifs);
            GifTypes.Add(dogGifs);
            GifTypes.Add(winGifs);
            GifTypes.Add(failGifs);
            GifTypes.Add(coolGifs);

            // Add handlers for window availability events
            AddWindowAvailabilityHandlers();
        }