code cleanup
This commit is contained in:
2
Form1.cs
2
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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user