示例#1
0
        private async void clear_Click(object sender, RoutedEventArgs e)
        {
            var messageDialog = new Windows.UI.Popups.MessageDialog("Warning");

            messageDialog.Title   = "Warning !!!";
            messageDialog.Content = "This will clear all settings and library contents and cannot be restored.\nAre you sure you want to continue?";
            messageDialog.Commands.Add(new UICommand("Yes", new UICommandInvokedHandler(this.CommandInvokedHandler)));
            messageDialog.Commands.Add(new UICommand("No", new UICommandInvokedHandler(this.CommandInvokedHandler)));
            messageDialog.DefaultCommandIndex = 0;
            messageDialog.CancelCommandIndex  = 1;
            await messageDialog.ShowAsync();

            Routines.DisplayMsg("Restart", "Please restart the app to add new books.");
        }
示例#2
0
 public void help_Click(object sender, RoutedEventArgs e)
 {
     Routines.DisplayMsg("Help", "Epub Reader 8 \nVersion: 3.0.0\nhttp://www.psi-apps.com/privacy-policy");
 }