Esempio n. 1
0
        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;*/
            }
        }
Esempio n. 2
0
 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);
     }
 }
Esempio n. 3
0
        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);
            }
        }
Esempio n. 4
0
 public void CheckRepaint()
 {
     app.CheckRepaint(this);
 }