Exemplo n.º 1
0
 private void tsbShape_Click(object sender, EventArgs e)
 {
     if (avso != null && asss != null)
     {
         ShapeManagerForm sm = new ShapeManagerForm();
         DialogResult dr = sm.ShowDialog();
         if(dr == DialogResult.OK)
         {
             ShapeObject sho = new ShapeObject(sm.Groups);
             sho.AddStart(0L);
             sho.AddEnd(5000L);
             ShapeTreeNode stn = null;
             ParentTreeNode ptn = null;
             mdiTools.AddShape(sho, out stn, out ptn);
             if(stn != null && ptn != null)
             {
                 mdiView.View.AddShapeLink(stn, ptn);
             }
         }
     }
 }