Пример #1
0
        private void bttnCreateNewCP_Click(object sender, EventArgs e) // create new color palette and LUT
        {
            frmTextInput frmNewLut = new frmTextInput("LUT name");

            if (frmNewLut.ShowDialog() == DialogResult.OK)
            {
                actualCPName = frmNewLut.inpuText;
                createNewCP();
                cmbColPaletteTables.Items.Add(actualCPName);
                cmbColPaletteTables.SelectedIndex = cmbColPaletteTables.Items.Count - 1;
            }
        }
Пример #2
0
        private void bttnSaveToGiwerFormat_Click(object sender, EventArgs e)
        {
            SaveFileDialog sf = new SaveFileDialog();

            sf.Filter = "Giwer header|*.gwh";
            if (sf.ShowDialog() == DialogResult.OK)
            {
                GeoImageTools gita    = new GeoImageTools(imgDat);
                frmTextInput  tbInput = new frmTextInput("Comment");
                tbInput.ShowDialog();
                string desc = tbInput.inpuText;
                gita.saveOneBandResultAsGiwerFormat(sf.FileName, currentBand, desc);
            }
        }