예제 #1
0
        /// <summary>
        /// Load Event Handler
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void frmLobby_Load(object sender, EventArgs e)
        {
            frmOpening opening = new frmOpening();

            opening.ShowDialog();
            try {
                MyPlayer.Play("MainTheme", true);
                if (File.Exists(fullMpersistencePath))
                {
                    RobotFactory.Buckets = smb.Read(fullMpersistencePath);
                }
                if (File.Exists(fullRpersistencePath))
                {
                    RobotFactory.Robots = smr.Read(fullRpersistencePath);
                    RobotFactory.ChargeBiography(biographyPath);
                }
            } catch (Exception ex) {
                frmLobby.FormExceptionHandler(ex);
            }
        }
예제 #2
0
        /// <summary>
        /// Load Event Handler
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void frmLobby_Load(object sender, EventArgs e)
        {
            frmOpening opening = new frmOpening();

            opening.ShowDialog();

            PlayMusic("MainTheme");

            try {
                if (File.Exists(fullMpersistencePath))
                {
                    RobotFactory.Buckets = smb.Read(fullMpersistencePath);
                }
                if (File.Exists(fullRpersistencePath))
                {
                    //RobotFactory.Robots = smr.Read(fullRpersistencePath);
                }
                RobotFactory.Robots = DataAccessManager.GetRobots();
                RobotFactory.ChargeBiography(biographyPath);
            } catch (Exception ex) {
                frmLobby.FormExceptionHandler(ex);
            }
        }