コード例 #1
0
ファイル: FlowEditor.cs プロジェクト: BenDerPan/VFlow
        private void goView_LinkCreated(object sender, Northwoods.Go.GoSelectionEventArgs e)
        {
            GoLink link = e.GoObject as GoLink;

            if (link != null)
            {
                Color c = Color.Black;
                link.PenColor   = c;
                link.PenWidth   = 2;
                link.BrushColor = c;
            }
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: hamedhh/SnortTraining
        // When a link is drawn by the user, give it a random color
        private void goView1_LinkCreated(object sender, Northwoods.Go.GoSelectionEventArgs e)
        {
            initListView("1.2");
            var    res  = goView1.Document;
            GoLink link = e.GoObject as GoLink;

            if (link != null)
            {
                Color c = GetRandomColor(100);
                link.PenColor   = c;
                link.PenWidth   = 2;
                link.BrushColor = c;
            }
        }