diff --git a/Form1.cs b/Form1.cs index 98ecb88..628b768 100644 --- a/Form1.cs +++ b/Form1.cs @@ -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"; } } }