Exemplo n.º 1
0
        public static void ShowGardenAreaEditDialog(GardenArea area)
        {
            string title = "Edit method area '" + area.Name + "'";

            if (area is Garden.Garden)
            {
                title = "Edit garden '" + area.Name + "'";
            }
            else if (area is Planting)
            {
                title = "Edit planting '" + area.Name + "'";
            }
            GardenAreaCreationDialog dialog = new GardenAreaCreationDialog(title);

            dialog.SetValuesForEdit(area);
        }