public void Display(string qname, string[] info)
        {
            Clear();

            foreach (string line in info)
            {
                ObjectRefsNode node = new ObjectRefsNode(qname, "", "");

                string[] steps = line.Split(',');
                foreach (string step in steps)
                {
                    Match m = reStep.Match(step);
                    if (m.Success)
                    {
                        node.Nodes.Add(new ObjectRefsNode(m.Groups[1].Value, m.Groups[2].Value, m.Groups[3].Value));
                    }
                    else
                    {
                        node.Nodes.Add(new ObjectRefsNode(step, "", ""));
                    }
                }

                model.Root.Nodes.Add(node);
            }

            objectsGrid.Model = model;
        }
Exemplo n.º 2
0
        public void Display(string qname, string[] info)
        {
            Clear();

            foreach (string line in info)
            {
                ObjectRefsNode node = new ObjectRefsNode(qname, "","");

                string[] steps = line.Split(',');
                foreach (string step in steps)
                {
                    Match m = reStep.Match(step);
                    if (m.Success)
                    {
                        node.Nodes.Add(new ObjectRefsNode(m.Groups[1].Value, m.Groups[2].Value, m.Groups[3].Value));
                    }
                    else
                    {
                        node.Nodes.Add(new ObjectRefsNode(step, "", ""));
                    }
                }

                model.Root.Nodes.Add(node);
            }

            objectsGrid.Model = model;
        }
 void objectsGrid_Open(object sender, EventArgs e)
 {
     if (objectsGrid.SelectedNode != null)
     {
         ObjectRefsNode node = objectsGrid.SelectedNode.Tag as ObjectRefsNode;
         if (node != null && node.Line.Length > 0)
         {
             fileToOpen = node.Path.Replace(';', System.IO.Path.DirectorySeparatorChar);
             lineToOpen = int.Parse(node.Line) - 1;
             delayOpen.Start();
         }
     }
 }