code cleanup

This commit is contained in:
2025-07-10 12:32:07 -05:00
parent c3e1f5a917
commit 651b203c1a

View File

@@ -42,7 +42,7 @@ namespace CopyAndEncodeImage {
}
private void textBox1_TextChanged(object sender, EventArgs e) {
btnEncode.Enabled = !string.IsNullOrEmpty(textBox1.Text) && System.IO.Path.GetExtension(textBox1.Text).ToLower() == ".png";
btnEncode.Enabled = !string.IsNullOrEmpty(textBox1.Text) && Path.GetExtension(textBox1.Text).ToLower() == ".png";
}
}
}