public TextureExportPreview(SpectrumList specList_)
        {
            InitializeComponent();

            pGridExport.PropertyValueChanged += new PropertyValueChangedEventHandler(pGridExport_PropertyValueChanged);

            specList = specList_;
            export = new SpectraTextureIO(specList);
            sfDlg.Filter = export.Extensions;
            pGridExport.SelectedObject = export;
            RefreshPropertyGrid();
        }
 private void tsBtnReset_Click(object sender, EventArgs e)
 {
     export = new SpectraTextureIO(specList);
     pGridExport.SelectedObject = export;
     pbPreview.Image = export.GenerateOutput();
 }