private void ExecuteCommand(object sender, EventArgs e)
{
if (File.Exists(tbInput.Text) == false) {
UpdateStatus("aborted, no input file", 100);
MessageBox.Show("Input file doesn't exist. Aborting.");
return;
}
if (!cbOutputPNG.Checked && !cbOutputJPG.Checked && !cbReplacePreview.Checked) {
UpdateStatus("aborted, no output format picked", 100);
MessageBox.Show("Either PNG, JPEG or Replace Preview must be checked.", "Nothing to do..", MessageBoxButtons.OK,
MessageBoxIcon.Information);
return;
}
tabControl.SelectTab(tpLog);
ExecuteRenderer();
}