private void convert_btn_Click(object sender, EventArgs e) { if (src_pic_box.Image == null) { showInfoMessage(CHOOSE_IMAGE_MSG); return; } hideErrorMessage(); res_pic_box.Image = filter.convertImage(src_pic_box.Image, aTextBox.Text, bTextBox.Text, darkCheckBox.Checked); }