Ejemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();

            //add the images you want from the .resx here
            images = new List <Image>
            {
                Properties.Resources.bieber01,
                Properties.Resources.bieber02,
                Properties.Resources.hoff01,
                Properties.Resources.hoff02,
                Properties.Resources.unicorn01,
                Properties.Resources.lolFace
            };

            // get this by running UI mode and clicking the "Gen Hashes" button
            var hashList = new List <string>
            {
                "8067680c232b51b1f14b829143e73d56",
                "2aa6ae2167918eda2180c7bf9d8d9814",
                "3c110776e4ea4cd70a32edb0f8a6973b",
                "92e70a1c0d862aebf63deea3aaa47508",
                "d63619af9b7a8ee700269cf66e0eb879",
                "fefccd7a39cb96649661af8d0a2771fe"
            };

            //for testing idle time
            //var idleCheckTimer = new DispatcherTimer();
            //idleCheckTimer.Tick += IdleCheckTimerElapsed;
            //idleCheckTimer.Interval = new TimeSpan(0, 0, 0, 0, 1000 / 10);
            //idleCheckTimer.Start();


            // build and start swapper
            swapper = new Swapper(images, hashList, IdleThreshold, SwapChance);
            swapper.Start();
        }