Пример #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));
        }