public static SavingResult? ShowAsDialog(string message, string caption, bool canKeepLocked, bool shouldUnlock, bool unlockVisibility)
 {
     var view = new SavingComfirmation();
     var viewModel = new SavingComfirmationViewModel(view, caption, message, canKeepLocked, shouldUnlock, unlockVisibility);
     view.DataContext = viewModel;
     Window parent = Utility.FuncGetCurrentActiveWindow(App.Current);
     if (parent != null)
         view.Owner = parent;
     view.ShowDialog();
     return view.Result;
 }
 /// <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 SavingComfirmationViewModel(SavingComfirmation view, string dialogTitle, string dialogMessage, bool canKeepLocked, bool shouldUnlock, bool unlockVisibility)
     : this()
 {
     this.view = view;
     title = dialogTitle;
     message = dialogMessage;
     CanKeepLocked = canKeepLocked;
     ShouldUnlock = shouldUnlock;
     UnlockVisibility = unlockVisibility ? "Visible" : "Collapsed";
     if (shouldUnlock && !unlockVisibility)
     {
         SaveButtonContent = "Yes";
         DontSaveButtonContent = "No";
     }
 }