예제 #1
0
파일: Eatery.cs 프로젝트: Rainy99/ITHero
 ///<summary>
 ///返回地图
 ///</summary>
 ///<param name="x">横坐标</param>
 ///<param name="y">纵坐标</param>
 public override void ReturnMap(int x, int y)
 {
     SchoolForm sForm = new SchoolForm();
     sForm.StartPosition = System.Windows.Forms.FormStartPosition.Manual;	//设置窗体起始位置
     sForm.Location = new System.Drawing.Point(x, y);							//设置窗体出现的坐标
     sForm.Show();
 }
예제 #2
0
        ///<summary>
        ///返回地图
        ///</summary>
        ///<param name="x">横坐标</param>
        ///<param name="y">纵坐标</param>
        public override void ReturnMap(int x, int y)
        {
            SchoolForm sForm = new SchoolForm();

            sForm.StartPosition = System.Windows.Forms.FormStartPosition.Manual;                //设置窗体第一次出现的位置
            sForm.Location      = new System.Drawing.Point(x, y);                               //设置窗体出现的坐标
            sForm.Show();
        }
예제 #3
0
        private void lblSchool_Click(object sender, EventArgs e)
        {
            SchoolForm sForm = new SchoolForm();
            sForm.StartPosition = FormStartPosition.Manual;    //设置窗体第一次出现的位置
            sForm.Location = new Point(this.Location.X, this.Location.Y);   //设置窗体出现的坐标
            sForm.Show();

            close = true;       //允许关闭本窗体
            this.Close();
        }
예제 #4
0
        private void lblSchool_Click(object sender, EventArgs e)
        {
            SchoolForm sForm = new SchoolForm();

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

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