Example #1
0
 void MnuEditLocation_Click(object sender, EventArgs e)
 {
     try
     {
         Cursor = Cursors.WaitCursor;
         MapLocation  loc      = dgIndividuals.SelectedRows[0].DataBoundItem as MapLocation;
         EditLocation editform = new EditLocation(loc.Location);
         Cursor = Cursors.Default;
         DialogResult result = editform.ShowDialog(this);
         editform.Dispose(); // needs disposed as it is only hidden because it is a modal dialog
         if (mapForm != null && mapForm.Visible)
         {
             if (mapForm is TimeLine)
             {
                 ((TimeLine)mapForm).RefreshClusters();
             }
             else if (mapForm is Places)
             {
                 ((Places)mapForm).RefreshClusters();
             }
         }
         UpdateIcons(loc.Location);
     }
     catch (Exception) { }
 }
Example #2
0
        private void EditLocation(FactLocation loc)
        {
            EditLocation editform = new EditLocation(loc);

            this.Cursor = Cursors.Default;
            DialogResult result = editform.ShowDialog(this);

            editform.Dispose(); // needs disposed as it is only hidden because it is a modal dialog
            // force refresh of locations from new edited data
            dgIndividuals.Refresh();
        }