예제 #1
0
파일: Form1.cs 프로젝트: bodik16/ITEA
        public Form1()
        {
            InitializeComponent();
            graphicsFree = panel1.CreateGraphics();
            graphicsFree = FreePanel.CreateGraphics();

            firstPen.SetLineCap(System.Drawing.Drawing2D.LineCap.Round, System.Drawing.Drawing2D.LineCap.Round, System.Drawing.Drawing2D.DashCap.Round);
        }
예제 #2
0
파일: Form1.cs 프로젝트: bodik16/ITEA
 private void FreePanel_MouseMove(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         if (comboBox1.Visible == false)
         {
             graphicsFree = FreePanel.CreateGraphics();
             current      = e.Location;
             graphicsFree.DrawLine(firstPen, old, current);
             old = current;
         }
         else
         {
             comboBox1.Visible = true;
             if (comboBox1.Text == "1")
             {
                 graphicsFree = FreePanel.CreateGraphics();
                 current      = e.Location;
                 graphicsFree.DrawLine(firstPen, old, current);
                 old = current;
             }
         }
     }
 }