예제 #1
0
 private void dgMaps_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == 2)
     {
         FormMapProperties dlg = new FormMapProperties(
             null,
             _maps[e.RowIndex], _maps[e.RowIndex].Display);
         dlg.ShowDialog();
     }
 }
예제 #2
0
        public void OnEvent(object element, object parent)
        {
            if (_doc == null || !(_doc.Application is IMapApplication) || !(element is IMap))
            {
                return;
            }

            FormMapProperties dlg = new FormMapProperties(
                (IMapApplication)_doc.Application,
                (IMap)element,
                ((IMap)element).Display);

            dlg.ShowDialog();
        }
예제 #3
0
        public Task <bool> OnEvent(object element, object parent)
        {
            if (_doc == null || !(_doc.Application is IMapApplication) || !(element is IMap))
            {
                return(Task.FromResult(true));
            }

            FormMapProperties dlg = new FormMapProperties(
                (IMapApplication)_doc.Application,
                (IMap)element,
                ((IMap)element).Display);

            dlg.ShowDialog();

            return(Task.FromResult(true));
        }