DeleteDialog - English

Description
DeleteDialog asks the user if he/she wants to delete the chossen file/folder or not. If the user wants to delete the dialog deletes the file or folder.

How-To-Use
  1. Create an instance: WPF_Dialogs.Dialogs.DeleteDialog d = new WPF_Dialogs.Dialogs.DeleteDialog("path of file or folder");
  2. Call the showDialog():
    1. As a normal function: d.showDialog();
    2. or as a function with return: WPF_Dialogs.EDialogResult result = d.showDialog();
  3. check the result:
    1. As a normal function: if(d.DialogResult == WPF_Dialogs.EDialogResult.OK) { do something }
    2. As a function with return:
      1. with variable: if(result == WPF_Dialogs.EdialogResult.OK) { do something }
      2. direct call: if(d.showDialog() == WPF_Dialog.EDialogResult.OK) { do something }

Features
  • Version 0.2.0
    • Defaults: IsFolder is true
    • Deletes a folder or file after requesting the user

Screenshots
DeleteDialogVersion 0.2.0 - 0.2.*
Version 0.2.0 - V0.2.*

Last edited Mar 30, 2010 at 9:35 AM by Sharpdeveloper, version 3

Comments

No comments yet.