示例#1
0
		public static bool Confirm(Window owner, string text, string caption, ref bool dontAskAgain)
		{
			var confirm = new ConfirmDialog(caption, text, dontAskAgain);
			confirm.Owner = owner;
			bool result = confirm.ShowDialog().Value;
			dontAskAgain = confirm.IsDontAskAgainChecked;
			return result;
		}
示例#2
0
        public static bool Confirm(Window owner, string text, string caption, ref bool dontAskAgain)
        {
            var confirm = new ConfirmDialog(caption, text, dontAskAgain);

            confirm.Owner = owner;
            bool result = confirm.ShowDialog().Value;

            dontAskAgain = confirm.IsDontAskAgainChecked;
            return(result);
        }