Beispiel #1
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();
 }
Beispiel #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();
        }
Beispiel #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();
        }
Beispiel #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();
        }