示例#1
0
 public ClassificationGraphicsForm(LinearNeuronNet net)
 {
     InitializeComponent();
     clGraphics        = new ClassificationGraphics(net);
     clGraphics.Dock   = DockStyle.Fill;
     clGraphics.Parent = this;
 }
示例#2
0
 public ColorGridForm(LinearNeuronNet _net)
 {
     InitializeComponent();
     net = _net;
     BuildExistingStudyPairs();
     colorGrid        = new ColorGrid.ColorGrid(8, 8);
     colorGrid.Dock   = DockStyle.Fill;
     colorGrid.Parent = Container.Panel1;
     colorGrid.DrawGrid();
     colorGrid.Refresh();
 }
示例#3
0
        public ClassificationGraphics(LinearNeuronNet net)
        {
            InitializeComponent();
            ReloadBitmap();
            Paint     += new PaintEventHandler(ClassificationGraphics_Paint);
            Resize    += new EventHandler(ClassificationGraphics_Resize);
            MouseDown += new MouseEventHandler(ClassificationGraphics_MouseDown);

            gridPen.DashStyle       = System.Drawing.Drawing2D.DashStyle.DashDotDot;
            strFormat.Alignment     = StringAlignment.Center;
            strFormat.LineAlignment = StringAlignment.Center;

            mainGraphics = CreateGraphics();

            this.linearNet = net;
            type           = NetType.LINEAR;
        }