mirror of
https://github.com/abdelkader/vCardEditor
synced 2025-12-12 08:27:19 +07:00
fusion
This commit is contained in:
@@ -155,7 +155,7 @@ namespace VCFEditor.Presenter
|
|||||||
if (!string.IsNullOrEmpty(path))
|
if (!string.IsNullOrEmpty(path))
|
||||||
{
|
{
|
||||||
string ext = _repository.GetExtension(path);
|
string ext = _repository.GetExtension(path);
|
||||||
if (ext != ".vcf")
|
if (!string.Equals(ext, ".vcf", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
_view.DisplayMessage("Only vcf extension accepted!", "Error");
|
_view.DisplayMessage("Only vcf extension accepted!", "Error");
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -117,17 +117,17 @@ namespace vCardEditor.View.Customs
|
|||||||
var result = MessageBox.Show("Remove tab?", "Asking", MessageBoxButtons.YesNo);
|
var result = MessageBox.Show("Remove tab?", "Asking", MessageBoxButtons.YesNo);
|
||||||
if (result == DialogResult.Yes)
|
if (result == DialogResult.Yes)
|
||||||
{
|
{
|
||||||
TabPages.RemoveAt(i);
|
TabPages.RemoveAt(i);
|
||||||
SelectedIndex = 0;
|
SelectedIndex = 0;
|
||||||
RemoveTab?.Invoke(sender, new EventArg<int>(i));
|
RemoveTab?.Invoke(sender, new EventArg<int>(i));
|
||||||
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -190,7 +190,7 @@ namespace vCardEditor.View.Customs
|
|||||||
|
|
||||||
//Page for the "+" sign
|
//Page for the "+" sign
|
||||||
TabPages.Add(new TabPage(" "));
|
TabPages.Add(new TabPage(" "));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void AddtabForAddress(vCardDeliveryAddress da)
|
private void AddtabForAddress(vCardDeliveryAddress da)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user