Пример #1
0
 public void showProperties(Netron.GraphLib.UI.GraphControl GC, designGraph graph1, object[] props)
 {
     graphControl = GC;
     graph        = graph1;
     rule         = null;
     try
     {
         graph.updateFromGraphControl(graphControl);
         if (graph.Bag == null)
         {
             graph.initPropertiesBag();
         }
         this.graphRuleProps.SelectedObject = graph.Bag;
         this.graphRulePropsTab.Text        = "Graph Properties";
     }
     catch (Exception exc)
     {
         MessageBox.Show("The properties of the graph has thrown an exception and cannot be displayed.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
         SearchIO.output(exc.Message, 2);
     }
     showDisplayProperties(graphControl, (Netron.GraphLib.PropertyBag)props[0]);
     showNodeArcProperties((Netron.GraphLib.PropertyBag)props[0], graph);
 }