Exemplo n.º 1
0
        private void MapButton_Click(object sender, EventArgs e)
        {
            var latitude  = GetLatitude();
            var longitude = GetLongitude();

            if (_mapForm == null)
            {
                _mapForm             = new MapWindow();
                _mapForm.FormClosed += MapForm_FormClosed;
            }
            _mapForm.Show(this);
            Hide();
        }
Exemplo n.º 2
0
 void MapForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     _mapForm = null;
     Show();
 }
        private void BackToMainWindow_Click(object sender, RoutedEventArgs e)
        {
            var close = new MapWindow();

            close.MapWindowForm();
        }