Пример #1
0
        private void inputGridBtn_Click(object sender, EventArgs e)
        {
            ImportTableForm form = new ImportTableForm();

            if (p.inputGrid != null)
            {
                form.SetFormMode(true, p.inputGrid.GetJ, p.inputGrid.GetI, p.inputGrid);
            }
            else
            {
                form.SetFormMode(false, 0, 0);
            }
            if (DialogResult.OK == form.ShowDialog())
            {
                mapPicBox.Grid = form.gridData;
                RiverSimulationProfile.profile.inputGrid = form.gridData;
                SwitchPreivewCombo(PreviewType.GridMap);
                UpdateStatus();
            }
        }
Пример #2
0
 private void inputGridBtn_Click(object sender, EventArgs e)
 {
     ImportTableForm form = new ImportTableForm();
     if (p.inputGrid != null)
     {
         form.SetFormMode(true, p.inputGrid.GetJ, p.inputGrid.GetI, p.inputGrid);
     }
     else
     {
         form.SetFormMode(false, 0, 0);
     }
     if (DialogResult.OK == form.ShowDialog())
     {
         mapPicBox.Grid = form.gridData;
         RiverSimulationProfile.profile.inputGrid = form.gridData;
         SwitchPreivewCombo(PreviewType.GridMap);
         UpdateStatus();
     }
 }