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