public DeleteWindow(DeleteMessageType type) { InitializeComponent(); switch (type) { case DeleteMessageType.File: ChangeButtonStyle(ButtonStyle.YESNO); message = "Are you sure you want to move this file to the Recycle Bin?"; break; case DeleteMessageType.Shortcut: ChangeButtonStyle(ButtonStyle.OKCANCEL); message = "This shortcut will be moved to the Recycle Bin."; break; case DeleteMessageType.HeadingWithChildren: ChangeButtonStyle(ButtonStyle.YESNO); message = "Are you sure you want to delete this heading and move its associated folder and all content to the Recycle Bin?"; break; case DeleteMessageType.HeadingWithoutChildren: // no message break; case DeleteMessageType.InplaceExpansionHeading: ChangeButtonStyle(ButtonStyle.OKCANCEL); message = "This heading will be removed and its associated shortcut will be moved to the Recycle Bin."; break; case DeleteMessageType.NoteWithFileAssociation: ChangeButtonStyle(ButtonStyle.YESNO); message = "Are you sure you want to delete this note and move its associated file to the Recycle Bin?"; break; case DeleteMessageType.NoteWithShortcutAssociation: ChangeButtonStyle(ButtonStyle.OKCANCEL); message = "This note will be removed and its associated shortcut will be moved to the Recycle Bin."; break; case DeleteMessageType.NoteWithoutAssociation: // no messgae break; case DeleteMessageType.MultipleItems: message = "Are you sure you want to delete all these notes?"; break; case DeleteMessageType.Default: ChangeButtonStyle(ButtonStyle.YESNO); message = "Are you sure you want to delete this heading/note?"; break; } ; this.Message.Text = message; }
public DeleteWindow(DeleteMessageType type) { InitializeComponent(); switch (type) { case DeleteMessageType.File: ChangeButtonStyle(ButtonStyle.YESNO); message = "Are you sure you want to move this file to the Recycle Bin?"; break; case DeleteMessageType.Shortcut: ChangeButtonStyle(ButtonStyle.OKCANCEL); message = "This shortcut will be moved to the Recycle Bin."; break; case DeleteMessageType.HeadingWithChildren: ChangeButtonStyle(ButtonStyle.YESNO); message = "Are you sure you want to delete this heading and move its associated folder and all content to the Recycle Bin?"; break; case DeleteMessageType.HeadingWithoutChildren: // no message break; case DeleteMessageType.InplaceExpansionHeading: ChangeButtonStyle(ButtonStyle.OKCANCEL); message = "This heading will be removed and its associated shortcut will be moved to the Recycle Bin."; break; case DeleteMessageType.NoteWithFileAssociation: ChangeButtonStyle(ButtonStyle.YESNO); message = "Are you sure you want to delete this note and move its associated file to the Recycle Bin?"; break; case DeleteMessageType.NoteWithShortcutAssociation: ChangeButtonStyle(ButtonStyle.OKCANCEL); message = "This note will be removed and its associated shortcut will be moved to the Recycle Bin."; break; case DeleteMessageType.NoteWithoutAssociation: // no messgae break; case DeleteMessageType.MultipleItems: message = "Are you sure you want to delete all these notes?"; break; case DeleteMessageType.Default: ChangeButtonStyle(ButtonStyle.YESNO); message = "Are you sure you want to delete this heading/note?"; break; }; this.Message.Text = message; }