private void AddItemCancelButton_Click(object sender, EventArgs e) { if (AbstractDialog.Current != null) { AbstractDialog.Current.Hide(); } }