Exemplo n.º 1
0
        private void GeneratePathUI(object sender, EventArgs e)
        {
            if (Program.pathIndex >= 20)
            {
                MessageBox.Show("一次最多添加20个路径!", "警告:", MessageBoxButtons.OK);
                return;
            }
            Continer.AutoScrollPosition = new Point(0, 0);
            PathUIGenerator pathUIGenerator = new PathUIGenerator(Continer);

            pathUIGenerator.startPath.GotFocus  += (s, a) => { HideCaret((s as TextBox).Handle); };
            pathUIGenerator.startPath.MouseDown += (s, a) => { HideCaret((s as TextBox).Handle); };
        }
Exemplo n.º 2
0
 private void DeleteAllPath(object sender, EventArgs e)
 {
     Program.pathIndex = 0;
     Continer.Controls.Clear();
     PathUIGenerator pathUIGenerator = new PathUIGenerator(Continer);
 }