예제 #1
0
        static void Main(string[] args)
        {
            GetBackground test = new GetBackground();

            //InVisible test = new InVisible();
            test.Run();
        }
        /// <summary>
        /// Sorteia uma imagem da lista e define como background do formulário.
        /// </summary>
        private void GetBackgroundImage()
        {
            Random r = new Random();

            if (GetBackground.GetImage())
            {
                BackgroundImage = GetBackground.list[r.Next(0, GetBackground.list.Count + 1)];
            }
        }