Example #1
0
        /// <summary>
        /// 食堂
        /// </summary>
        private void lblEatery_Click(object sender, EventArgs e)
        {
            BuildingForm bForm = new BuildingForm();
            bForm.StartPosition = FormStartPosition.Manual;    //设置窗体第一次出现的位置
            bForm.Location = new Point(this.Location.X, this.Location.Y);   //设置窗体出现的坐标
            bForm.Tag = 1001;
            bForm.Show();

            close = true;       //允许关闭本窗体
            this.Close();
        }
Example #2
0
        /// <summary>
        /// 教学楼
        /// </summary>
        private void lblClassroom_Click(object sender, EventArgs e)
        {
            GameManager.GameInfo.CurrentMap = new SchoolMap(1,"学校地图");	//保存学校地图对象
            BuildingForm bForm = new BuildingForm();
            bForm.StartPosition = FormStartPosition.Manual;    //设置窗体第一次出现的位置
            bForm.Location = new Point(this.Location.X, this.Location.Y);   //设置窗体出现的坐标
            bForm.Tag = 1000;
            bForm.Show();

            close = true;       //允许关闭本窗体
            this.Close();
        }
Example #3
0
        /// <summary>
        /// 食堂
        /// </summary>
        private void lblEatery_Click(object sender, EventArgs e)
        {
            BuildingForm bForm = new BuildingForm();

            bForm.StartPosition = FormStartPosition.Manual;                    //设置窗体第一次出现的位置
            bForm.Location      = new Point(this.Location.X, this.Location.Y); //设置窗体出现的坐标
            bForm.Tag           = 1001;
            bForm.Show();

            close = true;       //允许关闭本窗体
            this.Close();
        }
Example #4
0
        /// <summary>
        /// 游乐园
        /// </summary>
        private void lblHappyValley_Click(object sender, EventArgs e)
        {
            GameManager.GameInfo.CurrentMap = new OutsideSchoolMap(2, "校外地图");	//保存学校地图对象
            BuildingForm bForm = new BuildingForm();
            bForm.StartPosition = FormStartPosition.Manual;    //设置窗体第一次出现的位置
            bForm.Location = new Point(this.Location.X, this.Location.Y);   //设置窗体出现的坐标
            bForm.Tag = 2001;
            bForm.Show();

            close = true;       //允许关闭本窗体
            this.Close();
        }
Example #5
0
        /// <summary>
        /// 教学楼
        /// </summary>
        private void lblClassroom_Click(object sender, EventArgs e)
        {
            GameManager.GameInfo.CurrentMap = new SchoolMap(1, "学校地图");                 //保存学校地图对象
            BuildingForm bForm = new BuildingForm();

            bForm.StartPosition = FormStartPosition.Manual;                    //设置窗体第一次出现的位置
            bForm.Location      = new Point(this.Location.X, this.Location.Y); //设置窗体出现的坐标
            bForm.Tag           = 1000;
            bForm.Show();

            close = true;       //允许关闭本窗体
            this.Close();
        }
Example #6
0
        /// <summary>
        /// 游乐园
        /// </summary>
        private void lblHappyValley_Click(object sender, EventArgs e)
        {
            GameManager.GameInfo.CurrentMap = new OutsideSchoolMap(2, "校外地图");                  //保存学校地图对象
            BuildingForm bForm = new BuildingForm();

            bForm.StartPosition = FormStartPosition.Manual;                    //设置窗体第一次出现的位置
            bForm.Location      = new Point(this.Location.X, this.Location.Y); //设置窗体出现的坐标
            bForm.Tag           = 2001;
            bForm.Show();

            close = true;       //允许关闭本窗体
            this.Close();
        }