mirror of
https://github.com/abdelkader/vCardEditor
synced 2025-12-12 08:27:19 +07:00
file extension capital letter
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user