示例#1
0
 //private Screen menu;
 //private Action action;
 public MainWindow()
 {
     InitializeComponent();
     GameParameters._.instanciate();
     var u = new Uri(GameParameters.Path + @"\\icone.ico");
     var bitmanimg = new BitmapImage();
     bitmanimg.BeginInit();
     bitmanimg.UriSource = u;
     bitmanimg.EndInit();
     Icon = bitmanimg;
     GameParameters._.LoadTheFont();
     MainGrid.Children.RemoveAt(0);
     var w = new Wizard(this);
     w.Init();
     w.LaunchScreen();
 }
示例#2
0
 public override void Show(Control.Wizard w, Screenv2 screen)
 {
     _wizard = w;
     for (var i = w.Grid.Children.Count - 1; i > -1; i--)
     {
         if (!(w.Grid.Children[i] is Grid))
         {
             w.Grid.Children.RemoveAt(i);
         }
     }
     _wizard.Grid.Children.Add(img);
     PlaySound._.LoadAllMusic();
     foreach (var mus in PlaySound._.TypeMusicList)
     {
         _wizard.Grid.Children.Add(mus.Value);
     }
     TimerManager._.AddNewTimer(false, 4000, true,null, HideTimerEvent);
     TimerManager._.AddNewTimer(true, 28, true, null, FadingIn);
 }
示例#3
0
 public override void Show(Control.Wizard w, Screenv2 oldscreen)
 {
     thisistheend = false;
     movelocked = true;
     var pressstart = (PlayerSelectMenu)oldscreen;
     _wizard = w;
     OptionMoved = new Dictionary<string, string>();
     OptionSelected = new Dictionary<int, int>();
     OptionValidate = new Dictionary<int, int>();
     OptionError = new Dictionary<int, int>();
     GameParameters._.PlayerSkin = new Dictionary<int, int>();
     GameParameters._.PlayerSkin.Add(1, 1);
     GameParameters._.PlayerSkin.Add(2, 2);
     OptionSelected.Add(1,1);
     OptionValidate.Add(1,0);
     OptionSelected.Add(2,2);
     OptionValidate.Add(2, 0);
     if(GameParameters._.PlayerCount > 2)
     {
         OptionSelected.Add(3, 3);
         OptionValidate.Add(3, 0);
         GameParameters._.PlayerSkin.Add(3, 3);
     }
     if (GameParameters._.PlayerCount > 3)
     {
         OptionSelected.Add(4, 4);
         OptionValidate.Add(4, 0);
         GameParameters._.PlayerSkin.Add(4, 4);
     }
     var mySelectedOption = "Classic";
     if (GameParameters._.Type == GameType.Crazy)
     {
         mySelectedOption = "Crazy";
     }
     else if (GameParameters._.Type == GameType.Hardcore)
     {
         mySelectedOption = "Hardcore";
     }
     alreadyloaded = false;
     if (_menuDataList == null)
     {
         _menuDataList = new Dictionary<string, Image>();
         _menuLabelList = new Dictionary<string, Label>();
         _wizard.WindowDispatcher.Invoke(DispatcherPriority.Normal, new Action(() => LoadMenuImagePrevious(pressstart, mySelectedOption)));
         //_wizard.WindowDispatcher.Invoke(DispatcherPriority.Normal, new Action(LoadMenuLabel));
     }
     for (var i = w.Grid.Children.Count - 1; i > -1; i--)
     {
         if (!(w.Grid.Children[i] is Grid || w.Grid.Children[i] is MediaElement))
         {
             w.Grid.Children.RemoveAt(i);
         }
     }
     foreach (var img in MenuDataList)
     {
         _wizard.Grid.Children.Add(img.Value);
     }
     foreach (var lab in MenuLabelList)
     {
         _wizard.Grid.Children.Add(lab.Value);
     }
     //var lt = new ScaleTransform { ScaleX = 1.1, ScaleY = 1.1, CenterX = 134, CenterY = 50 };
     //MenuDataList[OptionSelected].Margin = new Thickness(MenuDataList[OptionSelected].Margin.Left - 10, MenuDataList[OptionSelected].Margin.Top - 10, 0,0);
     //MenuDataList[OptionSelected].LayoutTransform = lt;
     //MenuDataList[OptionSelected].Opacity = 1;
     TimerManager._.AddNewTimer(true, 15, true, null, ActionDefil);
     TimerManager._.AddNewTimer(true, 15, true, null, FadeIn);
 }
示例#4
0
 public void StopFonduPressStart(Wizard w)
 {
     _theW = w;
     TimerManager._.AddNewTimer(true, 15, true, null, FonduPressStart);
 }
示例#5
0
 public override void Show(Control.Wizard w, Screenv2 oldscreen)
 {
     thisistheend = false;
     var pressstart = (OptionMenu)oldscreen;
     _wizard = w;
     OptionZommed = new Dictionary<string, int>();
     OptionSelected = "BoxGeneral";
     if (_menuDataList == null)
     {
         _menuDataList = new Dictionary<string, Image>();
         _menuLabelList = new Dictionary<string, Label>();
         _wizard.WindowDispatcher.Invoke(DispatcherPriority.Normal, new Action(() => LoadMenuImagePrevious(pressstart)));
         //_wizard.WindowDispatcher.Invoke(DispatcherPriority.Normal, new Action(LoadMenuLabel));
     }
     for (var i = w.Grid.Children.Count - 1; i > -1; i--)
     {
         if (!(w.Grid.Children[i] is Grid))
         {
             w.Grid.Children.RemoveAt(i);
         }
     }
     foreach (var img in MenuDataList)
     {
         _wizard.Grid.Children.Add(img.Value);
     }
     foreach (var lab in MenuLabelList)
     {
         _wizard.Grid.Children.Add(lab.Value);
     }
     //var lt = new ScaleTransform { ScaleX = 1.1, ScaleY = 1.1, CenterX = 134, CenterY = 50 };
     //MenuDataList[OptionSelected].Margin = new Thickness(MenuDataList[OptionSelected].Margin.Left - 10, MenuDataList[OptionSelected].Margin.Top - 10, 0,0);
     //MenuDataList[OptionSelected].LayoutTransform = lt;
     //MenuDataList[OptionSelected].Opacity = 1;
     TimerManager._.AddNewTimer(true, 15, true, null, ActionDefil);
     TimerManager._.AddNewTimer(true, 15, true, null, FadeIn);
 }
示例#6
0
 public abstract void Show(Wizard w, Screenv2 screen);
示例#7
0
        public override void Show(Control.Wizard w, Screenv2 oldscreen)
        {
            if(oldscreen is GameModeMenu)
            {

                thisistheend = false;
                movelocked = true;
                var pressstart = (GameModeMenu)oldscreen;
                _wizard = w;
                OptionMoved = new Dictionary<string, string>();
                OptionSelected = "2P";
                var mySelectedOption = "Classic";
                if(GameParameters._.Type == GameType.Crazy)
                {
                    mySelectedOption = "Crazy";
                }
                else if (GameParameters._.Type == GameType.Hardcore)
                {
                    mySelectedOption = "Hardcore";
                }
                SelectedMode = mySelectedOption;
                alreadyloaded = false;
                if (_menuDataList == null)
                {
                    _menuDataList = new Dictionary<string, Image>();
                    _menuLabelList = new Dictionary<string, Label>();
                    _wizard.WindowDispatcher.Invoke(DispatcherPriority.Normal, new Action(() => LoadMenuImagePrevious(pressstart, mySelectedOption)));
                    //_wizard.WindowDispatcher.Invoke(DispatcherPriority.Normal, new Action(LoadMenuLabel));
                }
                for (var i = w.Grid.Children.Count - 1; i > -1; i--)
                {
                    if (!(w.Grid.Children[i] is Grid || w.Grid.Children[i] is MediaElement))
                    {
                        w.Grid.Children.RemoveAt(i);
                    }
                }
                foreach (var img in MenuDataList)
                {
                    _wizard.Grid.Children.Add(img.Value);
                }
                foreach (var lab in MenuLabelList)
                {
                    _wizard.Grid.Children.Add(lab.Value);
                }
                //var lt = new ScaleTransform { ScaleX = 1.1, ScaleY = 1.1, CenterX = 134, CenterY = 50 };
                //MenuDataList[OptionSelected].Margin = new Thickness(MenuDataList[OptionSelected].Margin.Left - 10, MenuDataList[OptionSelected].Margin.Top - 10, 0,0);
                //MenuDataList[OptionSelected].LayoutTransform = lt;
                //MenuDataList[OptionSelected].Opacity = 1;
                TimerManager._.AddNewTimer(true, 15, true, null, ActionDefil);
                TimerManager._.AddNewTimer(true, 15, true, null, FadeIn);
            }else if(oldscreen is SkinSelectMenu)
            {
                PlaySound._.Stop("Select");
                PlaySound._.LireBoucle("Menu");
                thisistheend = false;
                movelocked = true;
                var pressstart = (SkinSelectMenu)oldscreen;
                _wizard = w;
                OptionMoved = new Dictionary<string, string>();
                if(pressstart.MenuLabelList["BoxLevel"].Content == "Couple")
                {
                    OptionSelected = "2P";
                }
                else if (pressstart.MenuLabelList["BoxLevel"].Content == "Party")
                {
                    OptionSelected = "3P";
                }
                else if (pressstart.MenuLabelList["BoxLevel"].Content == "Super Party")
                {
                    OptionSelected = "4P";
                }
                var mySelectedOption = "Classic";
                if (GameParameters._.Type == GameType.Crazy)
                {
                    mySelectedOption = "Crazy";
                }
                else if (GameParameters._.Type == GameType.Hardcore)
                {
                    mySelectedOption = "Hardcore";
                }
                alreadyloaded = false;
                if (_menuDataList == null)
                {
                    _menuDataList = new Dictionary<string, Image>();
                    _menuLabelList = new Dictionary<string, Label>();
                    _wizard.WindowDispatcher.Invoke(DispatcherPriority.Normal, new Action(() => LoadMenuImagePrevious(pressstart, mySelectedOption)));
                    //_wizard.WindowDispatcher.Invoke(DispatcherPriority.Normal, new Action(LoadMenuLabel));
                }
                for (var i = w.Grid.Children.Count - 1; i > -1; i--)
                {
                    if (!(w.Grid.Children[i] is Grid || w.Grid.Children[i] is MediaElement))
                    {
                        w.Grid.Children.RemoveAt(i);
                    }
                }
                foreach (var img in MenuDataList)
                {
                    _wizard.Grid.Children.Add(img.Value);
                }
                foreach (var lab in MenuLabelList)
                {
                    _wizard.Grid.Children.Add(lab.Value);
                }
                //var lt = new ScaleTransform { ScaleX = 1.1, ScaleY = 1.1, CenterX = 134, CenterY = 50 };
                //MenuDataList[OptionSelected].Margin = new Thickness(MenuDataList[OptionSelected].Margin.Left - 10, MenuDataList[OptionSelected].Margin.Top - 10, 0,0);
                //MenuDataList[OptionSelected].LayoutTransform = lt;
                //MenuDataList[OptionSelected].Opacity = 1;
                TimerManager._.AddNewTimer(true, 15, true, null, ActionDefil);
                TimerManager._.AddNewTimer(true, 15, true, null, FadeOut);
            }
        }
示例#8
0
 public override void Show(Control.Wizard w, Screenv2 oldscreen)
 {
     PlaySound._.Stop("Select");
     PlaySound._.TypeSoundList["Versus"].Play();
     thisistheend = false;
     onthepop = false;
     var pressstart = (SkinSelectMenu)oldscreen;
     _wizard = w;
     //alreadyloaded = false;
     if (_menuDataList == null)
     {
         _menuDataList = new Dictionary<string, Image>();
         _menuLabelList = new Dictionary<string, Label>();
         _wizard.WindowDispatcher.Invoke(DispatcherPriority.Normal, new Action(() => LoadMenuImagePrevious(pressstart)));
         //_wizard.WindowDispatcher.Invoke(DispatcherPriority.Normal, new Action(LoadMenuLabel));
     }
     for (var i = w.Grid.Children.Count - 1; i > -1; i--)
     {
         if (!(w.Grid.Children[i] is Grid || w.Grid.Children[i] is MediaElement))
         {
             w.Grid.Children.RemoveAt(i);
         }
     }
     foreach (var img in MenuDataList)
     {
         _wizard.Grid.Children.Add(img.Value);
     }
     foreach (var lab in MenuLabelList)
     {
         _wizard.Grid.Children.Add(lab.Value);
     }
     //var lt = new ScaleTransform { ScaleX = 1.1, ScaleY = 1.1, CenterX = 134, CenterY = 50 };
     //MenuDataList[OptionSelected].Margin = new Thickness(MenuDataList[OptionSelected].Margin.Left - 10, MenuDataList[OptionSelected].Margin.Top - 10, 0,0);
     //MenuDataList[OptionSelected].LayoutTransform = lt;
     //MenuDataList[OptionSelected].Opacity = 1;
     TimerManager._.AddNewTimer(true, 15, true, null, FadeIn);
 }
示例#9
0
        public override void Show(Control.Wizard w, Screenv2 screen)
        {
            PlaySound._.Stop("Result");
            PlaySound._.TypeSoundList["OpenPressStart"].Play();
            thisIsTheEnd = false;
            _wizard = w;
            TimerManager._.Reset();
            for (var i = w.Grid.Children.Count - 1; i > -1; i--)
            {
                if (w.Grid.Children[i] is Grid)
                {
                    var g = (Grid)w.Grid.Children[i];
                    for (var j = g.Children.Count - 1; j > -1; j--)
                    {
                        if (!(g.Children[i] is Grid || g.Children[i] is MediaElement))
                        {
                            g.Children.RemoveAt(i);
                        }
                    }
                }
                if (!(w.Grid.Children[i] is Grid || w.Grid.Children[i] is MediaElement))
                {
                    w.Grid.Children.RemoveAt(i);
                }

            }
            if(_menuDataList == null)
            {
                _menuDataList = new Dictionary<string, Image>();
                _menuLabelList = new Dictionary<string, Label>();
                _wizard.WindowDispatcher.Invoke(DispatcherPriority.Normal, new Action(LoadMenuImage));
                _wizard.WindowDispatcher.Invoke(DispatcherPriority.Normal, new Action(LoadMenuLabel));
            }
            foreach (var img in MenuDataList)
            {
                _wizard.Grid.Children.Add(img.Value);
            }
            foreach (var img in MenuLabelList)
            {
                _wizard.Grid.Children.Add(img.Value);
            }
            triggerOk = false;
            TimerManager._.AddNewTimer(true, 15, true, null, ActionDefil);
            _actionInProgress = bombIncoming;
            TimerManager._.AddNewTimer(true, 15, true, null, ActionPressStart);
        }
示例#10
0
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     //button relou
     MainGrid.Children.RemoveAt(0);
     var w = new Wizard(this);
     w.Init();
     w.LaunchScreen();
 }
示例#11
0
        public override void Show(Control.Wizard w, Screenv2 oldscreen)
        {
            PlaySound._.Stop("Game");
            PlaySound._.Stop("Quick");
            PlaySound._.Stop("Hurry");
            PlaySound._.LireBoucle("Result");
            thisistheend = false;
            movelocked = true;
            _wizard = w;
            anim = 0;
            OptionMoved = new Dictionary<string, string>();
            OptionSelected = "Rejouer";
            //alreadyloaded = false;
            var pressstart = (GameScreen) oldscreen;
            if (_menuDataList == null)
            {
                _menuDataList = new Dictionary<string, Image>();
                _menuLabelList = new Dictionary<string, Label>();
                _wizard.WindowDispatcher.Invoke(DispatcherPriority.Normal, new Action(() => LoadMenuImagePrevious(pressstart)));
            }
            LoadMenuImage();
            LoadMenuLabel();
            foreach (var img in MenuDataList)
            {
                if (img.Key != "Over" && img.Key != "Hurry")
                {
                    _wizard.Grid.Children.Add(img.Value);
                }

            }
            foreach (var lab in MenuLabelList)
            {
                _wizard.Grid.Children.Add(lab.Value);
            }
            TimerManager._.AddNewTimer(true, 15, true, null, ActionDefil);
            TimerManager._.AddNewTimer(true, 15, true, null, FadeIn);
        }
示例#12
0
        public override void Show(Control.Wizard w, Screenv2 oldscreen)
        {
            thisistheend = false;
            alreadyloaded = false;

            if(oldscreen is MenuScreen)
            {
                var pressstart = (MenuScreen)oldscreen;
                movelocked = true;
                _wizard = w;
                PlaySound._.StopFonduPressStart(w);
                PlaySound._.LireBoucle("MenuAll");
                OptionZommed = new Dictionary<string, int>();
                OptionSelected = "BoxGame";
                if (_menuDataList == null)
                {
                    _menuDataList = new Dictionary<string, Image>();
                    _menuLabelList = new Dictionary<string, Label>();
                    _wizard.WindowDispatcher.Invoke(DispatcherPriority.Normal, new Action(() => LoadNewMenuImage(pressstart)));
                    _wizard.WindowDispatcher.Invoke(DispatcherPriority.Normal, new Action(LoadMenuLabel));
                }
                for (var i = w.Grid.Children.Count - 1; i > -1; i--)
                {
                    if (!(w.Grid.Children[i] is Grid || w.Grid.Children[i] is MediaElement))
                    {
                        w.Grid.Children.RemoveAt(i);
                    }
                }
                foreach (var img in MenuDataList)
                {
                    _wizard.Grid.Children.Add(img.Value);
                }
                foreach (var lab in MenuLabelList)
                {
                    _wizard.Grid.Children.Add(lab.Value);
                }
                TimerManager._.AddNewTimer(true, 15, true, null, ActionDefil);
                TimerManager._.AddNewTimer(true, 15, true, null, ActionBlack);
                SwitchOption("BoxGame");
                movelocked = false;

            }else if(oldscreen is OptionMenu)
            {
                var pressstart = (OptionMenu)oldscreen;
                _wizard = w;
                movelocked = true;
                OptionZommed = new Dictionary<string, int>();
                OptionSelected = "BoxGame";
                if (_menuDataList == null)
                {
                    _menuDataList = new Dictionary<string, Image>();
                    _menuLabelList = new Dictionary<string, Label>();
                    _wizard.WindowDispatcher.Invoke(DispatcherPriority.Normal, new Action(() => LoadMenuImagePrevious(pressstart)));
                    //_wizard.WindowDispatcher.Invoke(DispatcherPriority.Normal, new Action(LoadMenuLabel));
                }
                for (var i = w.Grid.Children.Count - 1; i > -1; i--)
                {
                    if (!(w.Grid.Children[i] is Grid || w.Grid.Children[i] is MediaElement))
                    {
                        w.Grid.Children.RemoveAt(i);
                    }
                }
                foreach (var img in MenuDataList)
                {
                    _wizard.Grid.Children.Add(img.Value);
                }
                foreach (var lab in MenuLabelList)
                {
                    _wizard.Grid.Children.Add(lab.Value);
                }
                TimerManager._.AddNewTimer(true, 15, true, null, ActionDefil);
                TimerManager._.AddNewTimer(true, 15, true, null, FadeOut);
                //SwitchOption("BoxGame");
            }
            else if (oldscreen is GameModeMenu)
            {
                var pressstart = (GameModeMenu) oldscreen;
                _wizard = w;
                movelocked = true;
                OptionZommed = new Dictionary<string, int>();
                OptionSelected = "BoxGame";
                if (_menuDataList == null)
                {
                    _menuDataList = new Dictionary<string, Image>();
                    _menuLabelList = new Dictionary<string, Label>();
                    _wizard.WindowDispatcher.Invoke(DispatcherPriority.Normal,
                                                    new Action(() => LoadMenuImagePrevious(pressstart)));
                    //_wizard.WindowDispatcher.Invoke(DispatcherPriority.Normal, new Action(LoadMenuLabel));
                }
                for (var i = w.Grid.Children.Count - 1; i > -1; i--)
                {
                    if (!(w.Grid.Children[i] is Grid || w.Grid.Children[i] is MediaElement))
                    {
                        w.Grid.Children.RemoveAt(i);
                    }
                }
                foreach (var img in MenuDataList)
                {
                    _wizard.Grid.Children.Add(img.Value);
                }
                foreach (var lab in MenuLabelList)
                {
                    _wizard.Grid.Children.Add(lab.Value);
                }
                TimerManager._.AddNewTimer(true, 15, true, null, ActionDefil);
                TimerManager._.AddNewTimer(true, 15, true, null, FadeOutPlay);
            }
        }
示例#13
0
        //public Dictionary<string, Label> MenuLabelList
        //{
        //    get { return _menuLabelList; }
        //}
        public override void Show(Control.Wizard w, Screenv2 oldscreen)
        {
            if(GameParameters._.Type == GameType.Classic)
            {
                PlaySound._.Stop("Result");
                animbomb = 0;
                animcurse = 0;
                sens = 1;
                openedanim = true;
                openedanimcurse = true;
                lastKey = Key.None;
                lastReleaseKey = Key.None;
                _wizard = w;
                movelocked = true;
                TimerManager._.Reset();
                for (var i = w.Grid.Children.Count - 1; i > -1; i--)
                {
                    if (!(w.Grid.Children[i] is Grid || w.Grid.Children[i] is MediaElement))
                    {
                        w.Grid.Children.RemoveAt(i);
                    }
                }
                if (Texture._.IsRandom)
                {
                    var listDir = Directory.EnumerateDirectories(GameParameters.Path + @"\" + GameParameters._.GetThemeFolder());
                    var listScreen = new List<String>();
                    foreach (var dir in listDir)
                    {
                        listScreen.Add(dir.Split('\\')[dir.Split('\\').Length - 1]);
                    }
                    var rand = new Random();
                    var theint = rand.Next(listScreen.Count - 1);
                    Texture._.SetTheme(listScreen.ElementAt(theint));
                    PlaySound._.SetTheme(listScreen.ElementAt(theint));
                    PlaySound._.ClearEverything(_wizard.TheWindow);
                    PlaySound._.LoadAllMusic();
                    foreach (var mus in PlaySound._.TypeMusicList)
                    {
                        _wizard.Grid.Children.Add(mus.Value);
                    }
                }

                if (_menuDataList == null)
                {
                    _menuDataList = new Dictionary<string, Image>();
                    _wizard.WindowDispatcher.Invoke(DispatcherPriority.Normal,
                                                    new Action(LoadImage));
                }
                foreach (var img in MenuDataList)
                {
                    _wizard.TheWindow.MainGrid.Children.Add(img.Value);
                    Canvas.SetZIndex(img.Value, 2);
                }
                Canvas.SetZIndex(MenuDataList["Hurry"], 3);
                Canvas.SetZIndex(MenuDataList["Over"], 4);
                _wizard.TheWindow.GameInProgress = new ClassicGame(this);
                TimerManager._.Game = _wizard.TheWindow.GameInProgress;
                ListenerGame._.GameInProgress = _wizard.TheWindow.GameInProgress;
                InitTextureGame();
                InitInGameMenu();
                ListenerGame._.EmptyTheCache();
                Score._.ResetSurvived();
                start = 4;
                PlaySound._.LireBoucle("Game");
                TimerManager._.AddNewTimer(true, 15, true, null, FadeIn);
            }else if(GameParameters._.Type == GameType.Crazy)
            {
                PlaySound._.Stop("Result");
                animbomb = 0;
                animcurse = 0;
                sens = 1;
                openedanim = true;
                openedanimcurse = true;
                lastKey = Key.None;
                lastReleaseKey = Key.None;
                _wizard = w;
                movelocked = true;
                TimerManager._.Reset();
                for (var i = w.Grid.Children.Count - 1; i > -1; i--)
                {
                    if (!(w.Grid.Children[i] is Grid || w.Grid.Children[i] is MediaElement))
                    {
                        w.Grid.Children.RemoveAt(i);
                    }
                }
                if (Texture._.IsRandom)
                {
                    var listDir = Directory.EnumerateDirectories(GameParameters.Path + @"\" + GameParameters._.GetThemeFolder());
                    var listScreen = new List<String>();
                    foreach (var dir in listDir)
                    {
                        listScreen.Add(dir.Split('\\')[dir.Split('\\').Length - 1]);
                    }
                    var rand = new Random();
                    var theint = rand.Next(listScreen.Count - 1);
                    Texture._.SetTheme(listScreen.ElementAt(theint));
                    PlaySound._.SetTheme(listScreen.ElementAt(theint));
                    PlaySound._.ClearEverything(_wizard.TheWindow);
                    PlaySound._.LoadAllMusic();
                    foreach (var mus in PlaySound._.TypeMusicList)
                    {
                        _wizard.Grid.Children.Add(mus.Value);
                    }
                }

                if (_menuDataList == null)
                {
                    _menuDataList = new Dictionary<string, Image>();
                    _wizard.WindowDispatcher.Invoke(DispatcherPriority.Normal,
                                                    new Action(LoadImage));
                }
                foreach (var img in MenuDataList)
                {
                    _wizard.TheWindow.MainGrid.Children.Add(img.Value);
                    Canvas.SetZIndex(img.Value, 2);
                }
                Canvas.SetZIndex(MenuDataList["Hurry"], 3);
                Canvas.SetZIndex(MenuDataList["Over"], 4);
                _wizard.TheWindow.GameInProgress = new CrazyGame(this);
                TimerManager._.Game = _wizard.TheWindow.GameInProgress;
                ListenerGame._.GameInProgress = _wizard.TheWindow.GameInProgress;
                InitTextureGame();
                InitInGameMenuCrazy();
                ListenerGame._.EmptyTheCache();
                Score._.ResetSurvived();
                start = 4;
                PlaySound._.LireBoucle("Game");
                TimerManager._.AddNewTimer(true, 15, true, null, FadeIn);
            }
        }