Ejemplo n.º 1
0
        private void Create_Click(object sender, EventArgs e)
        {
            CreateRockFormation createRockFormation = new CreateRockFormation();

            createRockFormation.DataChange += new EFS.CreateRockFormation.EventHandler(CreateRockFormationDelegate);
            createRockFormation.ShowDialog();
        }
Ejemplo n.º 2
0
        private void zedGraphControl_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            // 获取颜色信息
            initBMP();
            Color color  = GetColor(e.X, e.Y);
            int   length = rockFormations.Count;

            for (int i = 0; i < length; i++)
            {
                if (rockFormations[i].Color.ToArgb() == color.ToArgb())
                {
                    CreateRockFormation createRockFormation = new CreateRockFormation();
                    createRockFormation.name.Text             = rockFormations[i].Name;
                    createRockFormation.speed.Text            = rockFormations[i].Speed;
                    createRockFormation.density.Text          = rockFormations[i].Density;
                    createRockFormation.selectColor.BackColor = rockFormations[i].Color;
                    createRockFormation.Text        = "修改岩层属性";
                    createRockFormation.index       = i;
                    createRockFormation.DataChange += new EFS.CreateRockFormation.EventHandler(ModifyRockFormationDelegate);
                    createRockFormation.ShowDialog();
                    break;
                }
            }
        }