Ejemplo n.º 1
0
        public static void RunAlbum(object Args)
        {
            using (Album game = new Album())
            {

                ConfigData.Monitor Mon = (ConfigData.Monitor)Args;

                Control C = Form.FromHandle(game.Window.Handle);
                Form F = C.FindForm();

                F.FormBorderStyle = FormBorderStyle.None;
                game.Bounds = new Rectangle(Mon.Bounds.X, Mon.Bounds.Y, Mon.Bounds.Width, Mon.Bounds.Height);

                game.Location = Mon.Source;
                game.TransitionMode = Mon.TransitionMode;
                game.Order = Mon.Order;

                game.TileType = Mon.TileType;
                game.FixedTiles = Mon.FixedTiles;
                game.MinTiles = Mon.MinTiles;
                game.MaxTiles = Mon.MaxTiles;

                game.TransitionTime = Mon.TransitionTime;
                game.FixedTime = Mon.FixedTime;
                game.MinTime = Mon.MinTime;
                game.MaxTime = Mon.MaxTime;

                game.Run();

            }
        }
Ejemplo n.º 2
0
        public static void RunAlbum(object Bounds)
        {
            using (Album game = new Album())
            {

                Control C = Form.FromHandle(game.Window.Handle);
                Form F = C.FindForm();

                F.FormBorderStyle = FormBorderStyle.None;
                game.Bounds = (Rectangle)Bounds;

                game.IsLeft = (Bounds as Rectangle?).Value.X < 0 ? true : false;

                game.Run();

            }
        }