void SearchClick(Point p) { Point wp = map.GToW(p); GLib lib = app.Lib; ps.Search(lib, wp, map.Scale, map); switch (ps.Count) { case 0: if (lib.Selection.Count > 0) { Rect bounds = lib.Selection.Bounds; lib.Selection.Clear(); app.CheckRepaint(bounds); } app.Status = Locale.Get("_objectsnotfound"); app.ShowProperties(null); postponeStatusUpdate = true; break; default: lib.Selection.Set(ps.LastObject); app.CheckRepaint(ps.LastObject); app.ShowProperties(ps.LastObject); break; /* default: * ObjectsForm objectsForm=new ObjectsForm(app,ps.Objects); * objectsForm.ShowDialog(this); * break;*/ } }
private void tvTypes_AfterCheck(object sender, System.Windows.Forms.TreeViewEventArgs e) { if (!updating) { GComposite comp = e.Node.Tag as GComposite; AppLayer.Update(comp.Id, e.Node.Checked); if (OnCompositeChecked != null) { OnCompositeChecked(this, new CompositeEventArgs(comp)); } app.CheckRepaint(comp); } }
void Clear() { dtSearch.Rows.Clear(); GLib lib = null; if (lib == null) { return; } if (lib.Selection.Count > 0) { Rect bounds = lib.Selection.Bounds; lib.Selection.Clear(); app.CheckRepaint(bounds); } }
public void CheckRepaint() { app.CheckRepaint(this); }