Ejemplo n.º 1
0
        private void editBtn_Click(object sender, EventArgs e)
        {
            var p     = RiverSimulationProfile.profile;
            int index = listBox.SelectedIndex;

            StructureSetTableForm form = new StructureSetTableForm();

            form.SetGroupColors(mapPicBox.GetGroupColors());
            form.SetColorTable(mapPicBox.GetColorTable());
            form.SetSelectionItems(listBox, structureName, structureNum, typeIndex);

            form.SetFormMode("編輯結構物", "");
//            form.SetGridData(p.tBarSets, index);


            if (DialogResult.OK == form.ShowDialog())
            {
            }
            SetPicBoxGrid(listBox.SelectedIndex, false);
        }
Ejemplo n.º 2
0
        private void editBtn_Click(object sender, EventArgs e)
        {
            var p = RiverSimulationProfile.profile;
            int index = listBox.SelectedIndex;

            StructureSetTableForm form = new StructureSetTableForm();
            form.SetGroupColors(mapPicBox.GetGroupColors());
            form.SetColorTable(mapPicBox.GetColorTable());
            form.SetSelectionItems(listBox, structureName, structureNum, typeIndex);

            form.SetFormMode("編輯結構物", "");
            //            form.SetGridData(p.tBarSets, index);

            if (DialogResult.OK == form.ShowDialog())
            {

            }
            SetPicBoxGrid(listBox.SelectedIndex, false);
        }