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

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

            return(Recycle(pathToRecycle));
        }