private void btnCreateLUT_Click(object sender, EventArgs e) { if (dlgCreateLUT.ShowDialog() == DialogResult.OK) { Scripting.ScriptFilter filter = null; if (chkUseScript.Enabled && chkUseScript.Checked) filter = new Scripting.ScriptFilter(txtScript.Text); try { referenceImage.CreateLUT(dlgCreateLUT.FileName,filter); } catch (System.Exception exception) { showError("There was a problem creating the LUT file: " + exception.Message); return; } } }
private void btnCreateLUT_Click(object sender, EventArgs e) { if (dlgCreateLUT.ShowDialog() == DialogResult.OK) { Scripting.ScriptFilter filter = null; if (chkUseScript.Enabled && chkUseScript.Checked) { filter = new Scripting.ScriptFilter(txtScript.Text); } try { referenceImage.CreateLUT(dlgCreateLUT.FileName, filter); } catch (System.Exception exception) { showError("There was a problem creating the LUT file: " + exception.Message); return; } } }