private void OnDialogResultEvent(DialogEventArgs e)
        {
            var dialogResultEvent = DialogResultEvent;

            if (dialogResultEvent != null)
            {
                dialogResultEvent(this, e);
            }
        }
 private void OnDialogResultEvent(DialogEventArgs e)
 {
     var dialogResultEvent = DialogResultEvent;
     if (dialogResultEvent != null) 
         dialogResultEvent(this, e);
 }