// Edit button released public void OnEditEnd() { if (General.Interface.IsActiveWindow) { List <Thing> things = mode.GetSelectedThings(); //mxd updateList = new List <BaseVisualThing>(); foreach (Thing t in things) { VisualThing vt = mode.GetVisualThing(t); if (vt != null) { updateList.Add((BaseVisualThing)vt); } } General.Interface.OnEditFormValuesChanged += Interface_OnEditFormValuesChanged; mode.StartRealtimeInterfaceUpdate(SelectionType.Things); General.Interface.ShowEditThings(things); mode.StopRealtimeInterfaceUpdate(SelectionType.Things); General.Interface.OnEditFormValuesChanged -= Interface_OnEditFormValuesChanged; updateList.Clear(); updateList = null; } }
// Edit button released public virtual void OnEditEnd() { if (General.Interface.IsActiveWindow) { List <Thing> things = mode.GetSelectedThings(); DialogResult result = General.Interface.ShowEditThings(things); if (result == DialogResult.OK) { foreach (Thing t in things) { VisualThing vt = mode.GetVisualThing(t); if (vt != null) { (vt as BaseVisualThing).Changed = true; } } } } }
// Edit button released public virtual void OnEditEnd() { // Not using any modifier buttons if (!General.Interface.ShiftState && !General.Interface.CtrlState && !General.Interface.AltState) { if (General.Interface.IsActiveWindow) { List <Thing> things = mode.GetSelectedThings(); DialogResult result = General.Interface.ShowEditThings(things); if (result == DialogResult.OK) { foreach (Thing t in things) { VisualThing vt = mode.GetVisualThing(t); if (vt != null) { (vt as BaseVisualThing).Changed = true; } } } } } }