public ClassificationGraphicsForm(KohonenNeuronNet net) { InitializeComponent(); clGraphics = new ClassificationGraphics(net); clGraphics.Dock = DockStyle.Fill; clGraphics.Parent = this; }
public ClassificationGraphics(KohonenNeuronNet 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.kohonenNet = net; type = NetType.KOHONEN; }