Ejemplo n.º 1
0
 public static bool JustConfirm(string labelForThingBeingDeleted)
 {
     using (var dlg = new ConfirmRecycleDialog(labelForThingBeingDeleted))
     {
         return DialogResult.OK == dlg.ShowDialog();
     }
 }
Ejemplo n.º 2
0
 public static bool JustConfirm(string labelForThingBeingDeleted)
 {
     using (var dlg = new ConfirmRecycleDialog(labelForThingBeingDeleted))
     {
         return(DialogResult.OK == dlg.ShowDialog());
     }
 }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 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));
        }