/// <summary>
 /// Constructor with basic parameters
 /// </summary>
 /// <param name="dialogTitle">Title of the dialog</param>
 /// <param name="dialogMessage">Message text of the dialog</param>
 /// <param name="dialogUrl">Url that will be displayed as a clickable link</param>
 public OpenActivityConfirmationViewModel(OpenActivityConfirmation view, string dialogTitle, string dialogMessage)
     : this()
 {
     this.view = view;
     title = dialogTitle;
     message = dialogMessage;
 }
 public static MessageBoxResult ShowAsDialog(string message, string caption)
 {
     var view = new OpenActivityConfirmation();
     var viewmodel = new OpenActivityConfirmationViewModel(view, caption, message);
     view.DataContext = viewmodel;
     Window parent = Utility.FuncGetCurrentActiveWindow(App.Current);
     if (parent != null)
         view.Owner = parent;
     view.ShowDialog();
     return view.Result;
 }