file extension capital letter

This commit is contained in:
abdelkader
2023-04-14 17:52:18 -04:00
parent 1db99cf187
commit 2325b5f986
2 changed files with 3 additions and 8 deletions

View File

@@ -135,7 +135,7 @@ namespace VCFEditor.Presenter
if (!string.IsNullOrEmpty(path))
{
string ext = _repository.GetExtension(path);
if (ext != ".vcf")
if (!string.Equals(ext, ".vcf", StringComparison.OrdinalIgnoreCase))
{
_view.DisplayMessage("Only vcf extension accepted!", "Error");
return;

View File

@@ -44,17 +44,12 @@ namespace vCardEditor.View
{
InitializeComponent();
resources = new ComponentResourceManager(typeof(MainForm));
tbcAddress.AddTab += TbcAddress_AddTab;
BuildMRUMenu();
}
private void TbcAddress_AddTab(object sender, EventArgs e)
{
// MessageBox.Show("Test");
}
private void tbsOpen_Click(object sender, EventArgs e)