Ejemplo n.º 1
0
        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");
            }
        }
Ejemplo n.º 2
0
        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");
        }