Exemple #1
0
 private void OnClickDeleteRelation(object sender, System.EventArgs e)
 {
     if (DialogResult.Yes == MessageBox.Show("确定要删除这个关系吗?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information))
     {
         Lassalle.Flow.Link link = addFlow_Tables.PointedItem as Lassalle.Flow.Link;
         link.Remove();
     }
 }
        private void Button1_Click(object sender, EventArgs e)
        {
            Lassalle.Flow.Node n1 = this.addFlow1.Nodes.Add(10, 10, 40, 40, "aaa");
            Lassalle.Flow.Node n2 = this.addFlow1.Nodes.Add(60, 60, 40, 40, "bbb");

            //Lassalle.Flow.Link l = new Lassalle.Flow.Link()

            Lassalle.Flow.Link l = n1.Links.Add(n2, "lll");
            //            l.MaxPointsCount = 3;

            //n1.Shape = Lassalle.Flow.Shape.
        }