private void btn_google_Click(object sender, EventArgs e) { MapForm mf = null; if (model.CurrentPosition != null) { mf = new MapForm(new Point(this.Parent.Location.X + this.Parent.Width, this.Parent.Location.Y), this.Controller); mf.Visible = true; mf.GoToPosition(model.CurrentPosition); } else { Error("Current position invalid"); } }
private void btn_google_Click(object sender, EventArgs e) { MapForm mf = null; if (model.CurrentPosition != null) { mf = new MapForm(new Point(this.Parent.Location.X + this.Parent.Width, this.Parent.Location.Y), this.Controller); mf.Visible = true; mf.GoToPosition(model.CurrentPosition); } else Error("Current position invalid"); }