void UpdateMapRect(Point p) { Rectangle r = GetSelectionRect(p); selectionRect = Rectangle.Empty; if (mouseDownPoint == nullPoint || r.Width < 10 || r.Height < 10) { return; } Rect bounds = map.GToW(r); // MapForm mapForm=new MapForm(app,bounds); // mapForm.ShowDialog(app.MainForm); map.SetBounds(bounds); Repaint(); app.DataChanged(map); }
private void propertyGrid_PropertyValueChanged(object s, System.Windows.Forms.PropertyValueChangedEventArgs e) { if (OnPropertyValueChanged != null) { OnPropertyValueChanged(this, e); } object selObj = SelectedObject; if (selObj != null) { LocalizedObject lo = selObj as LocalizedObject; if (lo != null) { app.DataChanged(lo.Object); } } }