public void SaveData(CBusiLevelBase gameScene)
 {
     strFileSave = Directory.GetCurrentDirectory() + @"\data " + DateTime.Now.ToLongTimeString().Replace(":", "_") + ".dat";
     FileStream FS = File.Create(strFileSave);
     BinaryFormatter binSerializer = new BinaryFormatter();
     binSerializer.Serialize(FS, gameScene);
     FS.Close();
 }
 public CGuiPause(CInfoGameSceneBase  info, CBusiLevelBase preScene)
     : base(info)
 {
     Dto.Background = new CBusiBackground(new CInfoBackground(info.Game,"bg_pause", 0));
     btnContinue = new CBusiButton(new CInfoButton(info.Game.Content.Load<Texture2D>("Images/Button/btn_continue"), new Vector2(268, 250)));
     btnMenu = new CBusiButton(new CInfoButton(info.Game.Content.Load<Texture2D>("Images/Button/btn_backmenu"), new Vector2(268, 330)));
     btnSave = new CBusiButton(new CInfoButton(info.Game.Content.Load<Texture2D>("Images/Button/btn_save"), new Vector2(268, 410)));
     btnQuit = new CBusiButton(new CInfoButton(info.Game.Content.Load<Texture2D>("Images/Button/btn_exit"), new Vector2(268, 490)));
     // background.IsScroll = false;
     Dto.ListButton.Add(btnContinue);
     Dto.ListButton.Add(btnMenu);
     Dto.ListButton.Add(btnSave);
     Dto.ListButton.Add(btnQuit);
     this.preScene = preScene;
 }