예제 #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);
        }