public static bool JustConfirm(string labelForThingBeingDeleted) { using (var dlg = new ConfirmRecycleDialog(labelForThingBeingDeleted)) { return DialogResult.OK == dlg.ShowDialog(); } }
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); }
public static bool ConfirmThenRecycle(string labelForThingBeingDeleted, string pathToRecycle) { using (var dlg = new ConfirmRecycleDialog(labelForThingBeingDeleted)) { if (DialogResult.OK != dlg.ShowDialog()) { return(false); } } return(Recycle(pathToRecycle)); }