public Form1() { InitializeComponent(); outputPanel = new OutputPanel(new PaintToolsCollection()); DrawPanel.Controls.Add(outputPanel); outputPanel.Width = DrawPanel.Width; outputPanel.Height = DrawPanel.Height; outputPanel.Add(new EmptyTool()); }
private void Line1ButtonClick(object sender, EventArgs e) { outputPanel.Add(Line1Tool.Build()); listView1.Items.Add(new ListViewItem("Line1")); Invalidate(true); }