Interaction logic for Help.xaml Generic help dialog
Inheritance: System.Windows.Window
Exemplo n.º 1
0
        // We provide access to the help dialog with explanations from inside the about dialog
        private void Help_Click(object sender, RoutedEventArgs e)
        {
            Logger.record("[Help_Click]: Showing help dialog #0 (normal help)", "AboutDlg", "info");

            // Help is:
            // 0 - Normal help inside application
            // 1 - -help help
            // 2 - -report help
            // 3 - -tohtml help

            Help help = new Help();
            help.LoadText(0);

            // The following two lines differentiate this call to the Help dialog from the other calls
            //  Other lines duplicate the ShowHelp function.
            help.Owner = this;          // About Dialog is the owner of the help, for modal matters
            help.ShowInTaskbar = false; // Rapid Reporter has an icon on the task bar (not the )

            help.ShowDialog();
            Logger.record("[Help_Click]: Help dialog displayed and exited", "AboutDlg", "info");
        }
Exemplo n.º 2
0
        public void ShowHelp(string helpText)
        {
            Logger.record("\t\t[ShowHelp s]: Showing help dialog >" + helpText, "SMWidget", "info");

            Help help = new Help();
            help.LoadText(helpText);

            help.ShowInTaskbar = true; // In this cases we don't show the main window, so at least we show this one
            help.ShowDialog();
        }