Example #1
0
 public static bool JustConfirm(string labelForThingBeingDeleted, bool multipleItems = false, string localizationManagerId = null)
 {
     using (var dlg = new ConfirmRecycleDialog(labelForThingBeingDeleted, multipleItems, localizationManagerId))
     {
         return(DialogResult.OK == dlg.ShowDialog());
     }
 }
		public static bool JustConfirm(string labelForThingBeingDeleted, bool multipleItems = false, string localizationManagerId = null)
		{
			using (var dlg = new ConfirmRecycleDialog(labelForThingBeingDeleted, multipleItems, localizationManagerId))
			{
				return DialogResult.OK == dlg.ShowDialog();
			}
		}
		public static bool ConfirmThenRecycle(string labelForThingBeingDeleted, string pathToRecycle, bool multipleItems = false, string localizationManagerId = null)
		{
			using (var dlg = new ConfirmRecycleDialog(labelForThingBeingDeleted, multipleItems, localizationManagerId))
			{
				if (DialogResult.OK != dlg.ShowDialog())
					return false;
			}

			return Recycle(pathToRecycle);
		}
Example #4
0
        public static bool ConfirmThenRecycle(string labelForThingBeingDeleted, string pathToRecycle, bool multipleItems = false, string localizationManagerId = null)
        {
            using (var dlg = new ConfirmRecycleDialog(labelForThingBeingDeleted, multipleItems, localizationManagerId))
            {
                if (DialogResult.OK != dlg.ShowDialog())
                {
                    return(false);
                }
            }

            return(Recycle(pathToRecycle));
        }