mirror of
https://github.com/abdelkader/vCardEditor
synced 2025-12-12 08:27:19 +07:00
Merge pull request #46 from JDM170/issue_40
Added a dialog box with a question about deleting contacts
This commit is contained in:
@@ -113,10 +113,13 @@ namespace vCardEditor.View.Customs
|
||||
|
||||
private void RemoveControl(object sender, EventArgs e)
|
||||
{
|
||||
var par = (sender as Control).Parent;
|
||||
PanelContent.Controls.Remove(par);
|
||||
if (MessageBox.Show("Are you sure?", "Question", MessageBoxButtons.YesNo) == DialogResult.Yes)
|
||||
{
|
||||
var par = (sender as Control).Parent;
|
||||
PanelContent.Controls.Remove(par);
|
||||
|
||||
ReplaceControls();
|
||||
ReplaceControls();
|
||||
}
|
||||
}
|
||||
|
||||
private void ReplaceControls()
|
||||
|
||||
Reference in New Issue
Block a user