///<summary> ///返回地图 ///</summary> ///<param name="x">界面出现的横坐标</param> ///<param name="y">界面出现的纵坐标</param> public override void ReturnMap(int x,int y) { OutsideSchoolForm osForm = new OutsideSchoolForm(); osForm.StartPosition = System.Windows.Forms.FormStartPosition.Manual; osForm.Location = new System.Drawing.Point(x,y); osForm.Show(); }
///<summary> ///返回地图 ///</summary> ///<param name="x">界面出现的横坐标</param> ///<param name="y">界面出现的纵坐标</param> public override void ReturnMap(int x, int y) { OutsideSchoolForm osForm = new OutsideSchoolForm(); osForm.StartPosition = System.Windows.Forms.FormStartPosition.Manual; osForm.Location = new System.Drawing.Point(x, y); osForm.Show(); }
private void lblDoor_Click(object sender, EventArgs e) { OutsideSchoolForm osForm = new OutsideSchoolForm(); osForm.StartPosition = FormStartPosition.Manual; //设置窗体第一次出现的位置 osForm.Location = new Point(this.Location.X, this.Location.Y); //设置窗体出现的坐标 osForm.Show(); close = true; //允许关闭本窗体 this.Close(); }