示例#1
0
 public Form1()
 {
     InitializeComponent();
     outputPanel = new OutputPanel(new PaintToolsCollection());
     DrawPanel.Controls.Add(outputPanel);
     outputPanel.Width  = DrawPanel.Width;
     outputPanel.Height = DrawPanel.Height;
     outputPanel.Add(new EmptyTool());
 }
示例#2
0
文件: Form1.cs 项目: swstwix/Paint2
 public Form1()
 {
     InitializeComponent();
     outputPanel = new OutputPanel(new PaintToolsCollection());
     DrawPanel.Controls.Add(outputPanel);
     outputPanel.Width = DrawPanel.Width;
     outputPanel.Height = DrawPanel.Height;
     outputPanel.Add(new EmptyTool());
 }
示例#3
0
 private void Line1ButtonClick(object sender, EventArgs e)
 {
     outputPanel.Add(Line1Tool.Build());
     listView1.Items.Add(new ListViewItem("Line1"));
     Invalidate(true);
 }