예제 #1
0
 private void HelpToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (var dialog = new HelpDialog())
     {
         dialog.ShowDialog();
     }
 }
예제 #2
0
 private void Window_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.F1)
     {
         HelpDialog helpDialog = new HelpDialog();
         helpDialog.ShowDialog();
     }
 }
 private void UserManagementListForm_HelpRequested(object sender, HelpEventArgs hlpevent)
 {
     using (HelpDialog dialog = new HelpDialog(Properties.Resources.PluginMetadataHelpPage))
     {
         dialog.Title = "User Reference Help";
         dialog.ShowDialog();
     }
 }
 private void GlobalSettingsManagementDialog_HelpRequested(object sender, HelpEventArgs hlpevent)
 {
     using (HelpDialog dialog = new HelpDialog(Properties.Resources.GlobalSettingsManagementHelpPage))
     {
         dialog.Title = "Global Settings Help";
         dialog.ShowDialog();
     }
 }
예제 #5
0
 private void HelpToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (var dialog = new HelpDialog())
     {
         dialog.StartPosition = FormStartPosition.CenterParent;
         dialog.ShowDialog(this);
     }
 }
        private void MigrationConflictInfoLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            HelpTopic migrationTopic = GetTopics()
                                       .Where(topic => topic.Name == "Migration conflicts")
                                       .First();

            HelpDialog dialog = new HelpDialog(migrationTopic);

            dialog.ShowDialog();
        }
예제 #7
0
파일: SoundDialog.cs 프로젝트: ywscr/ogama
        ///////////////////////////////////////////////////////////////////////////////
        // Eventhandler                                                              //
        ///////////////////////////////////////////////////////////////////////////////
        #region EVENTS

        ///////////////////////////////////////////////////////////////////////////////
        // Eventhandler for UI, Menu, Buttons, Toolbars etc.                         //
        ///////////////////////////////////////////////////////////////////////////////
        #region WINDOWSEVENTHANDLER

        /// <summary>
        /// <see cref="Control.Click"/> event handler
        /// for the <see cref="Button"/> <see cref="btnHelp"/>
        /// Raises a new <see cref="HelpDialog"/> dialog with instructions
        /// on how to define a new sound object and its position on the picture.
        /// </summary>
        /// <param name="sender">Source of the event.</param>
        /// <param name="e">A empty <see cref="EventArgs"/></param>
        private void btnHelp_Click(object sender, EventArgs e)
        {
            HelpDialog dlg = new HelpDialog();

            dlg.HelpCaption = "How to: Define a sound object.";
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("After click on OK drag and pull a rectangle that bounds the new sound object. During slide design it will be visible via an icon, which will not be displayed during presentation. Therefore, size and position of the sound object will be ignored during presentation.");
            dlg.HelpMessage = sb.ToString();
            dlg.ShowDialog();
        }
예제 #8
0
        /// <summary>
        /// <see cref="Control.Click"/> event handler
        /// for the <see cref="Button"/> <see cref="btnHelp"/>
        /// Raises a new <see cref="HelpDialog"/> dialog with instructions
        /// on how to define a new instruction and its position on the picture.
        /// </summary>
        /// <param name="sender">Source of the event.</param>
        /// <param name="e">A empty <see cref="EventArgs"/></param>
        private void btnHelp_Click(object sender, EventArgs e)
        {
            HelpDialog dlg = new HelpDialog();

            dlg.HelpCaption = "How to: Define the position of the image.";
            StringBuilder sb = new StringBuilder();

            sb.Append("When the button is clicked you can specify position and size of the image by specifying the bounding rectangle with the left mouse button (click and pull) only when image layout is set to 'None'.");
            dlg.HelpMessage = sb.ToString();
            dlg.ShowDialog();
        }
예제 #9
0
        /// <summary>
        /// <see cref="Control.Click"/> event handler
        /// for the <see cref="Button"/> <see cref="btnHelp"/>
        /// Raises a new <see cref="HelpDialog"/> dialog with instructions.
        /// </summary>
        /// <param name="sender">Source of the event.</param>
        /// <param name="e">A empty <see cref="EventArgs"/></param>
        private void btnHelp_Click(object sender, EventArgs e)
        {
            HelpDialog dlg = new HelpDialog();

            dlg.HelpCaption = "How to: Interact with the movie.";
            StringBuilder sb = new StringBuilder();

            sb.Append("In the preview and on the slide you can interact with the flash movie just as usual.");
            dlg.HelpMessage = sb.ToString();
            dlg.ShowDialog();
        }
예제 #10
0
        /// <summary>
        /// <see cref="Control.Click"/> event handler
        /// for the <see cref="Button"/> <see cref="btnHelp"/>
        /// Raises a new <see cref="HelpDialog"/> dialog with instructions
        /// on how to define a new instruction and its position on the picture.
        /// </summary>
        /// <param name="sender">Source of the event.</param>
        /// <param name="e">A empty <see cref="EventArgs"/></param>
        private void btnHelp_Click(object sender, EventArgs e)
        {
            HelpDialog dlg = new HelpDialog();

            dlg.HelpCaption = "How to: Define the position of the shape.";
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("When the add rectangle or add ellipse buttons is clicked you can specify position and size of the shape by specifying the bounding rectangle with the left mouse button (click and pull).");
            sb.AppendLine("When adding a polyline you can specify each point of the polyline with a single left mouse click. The polyline creation is finished, when you clicked the first point again.");
            dlg.HelpMessage = sb.ToString();
            dlg.ShowDialog();
        }
예제 #11
0
        ///////////////////////////////////////////////////////////////////////////////
        // Eventhandler                                                              //
        ///////////////////////////////////////////////////////////////////////////////
        #region EVENTS

        ///////////////////////////////////////////////////////////////////////////////
        // Eventhandler for UI, Menu, Buttons, Toolbars etc.                         //
        ///////////////////////////////////////////////////////////////////////////////
        #region WINDOWSEVENTHANDLER

        /// <summary>
        /// <see cref="Control.Click"/> event handler
        /// for the <see cref="Button"/> <see cref="btnHelp"/>
        /// Raises a new <see cref="HelpDialog"/> dialog with instructions.
        /// </summary>
        /// <param name="sender">Source of the event.</param>
        /// <param name="e">A empty <see cref="EventArgs"/></param>
        private void btnHelp_Click(object sender, EventArgs e)
        {
            var dlg = new HelpDialog {
                HelpCaption = "How to: Define a desktop slide."
            };
            var sb = new StringBuilder();

            sb.Append("The desktop slide is a dummy that can be used to record anything" +
                      " that is on the desktop. It starts a screen recorder.");
            dlg.HelpMessage = sb.ToString();
            dlg.ShowDialog();
        }
예제 #12
0
        /// <summary>
        /// <see cref="Control.Click"/> event handler
        /// for the <see cref="Button"/> <see cref="btnHelp"/>
        /// Raises a new <see cref="HelpDialog"/> dialog with instructions
        /// on how to define a new instruction and its position on the picture.
        /// </summary>
        /// <param name="sender">Source of the event.</param>
        /// <param name="e">A empty <see cref="EventArgs"/></param>
        private void btnHelp_Click(object sender, EventArgs e)
        {
            HelpDialog dlg = new HelpDialog();

            dlg.HelpCaption = "How to: Define the position of the instruction.";
            StringBuilder sb = new StringBuilder();

            sb.Append("When the button is clicked you can specify position ");
            sb.Append("and text wrapping by specifying the bounding rectangle of the instruction with ");
            sb.AppendLine("the left mouse button (click and pull).");
            dlg.HelpMessage = sb.ToString();
            dlg.ShowDialog();
        }
예제 #13
0
        /// <summary>
        /// <see cref="Control.Click"/> event handler
        /// for the <see cref="PictureBox"/> <see cref="pcbLinksHelp"/>
        /// Shows a <see cref="HelpDialog"/> with help information on
        /// how to define links between slides.
        /// </summary>
        /// <param name="sender">Source of the event.</param>
        /// <param name="e">An empty <see cref="EventArgs"/></param>
        private void pcbLinksHelp_Click(object sender, EventArgs e)
        {
            HelpDialog dlg = new HelpDialog();

            dlg.HelpCaption = "How to: Define links to other trials.";
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("Adding links to other trials enables to jump to different trials from one slide.");
            sb.Append("When the users response is in the list of links ");
            sb.Append("the slideshow will jump to the linked trial. ");
            dlg.HelpMessage = sb.ToString();
            dlg.ShowDialog();
        }
예제 #14
0
        /// <summary>
        /// <see cref="Control.Click"/> event handler
        /// for the <see cref="Button"/> <see cref="btnHelp"/>
        /// Raises a new <see cref="HelpDialog"/> dialog with instructions.
        /// </summary>
        /// <param name="sender">Source of the event.</param>
        /// <param name="e">A empty <see cref="EventArgs"/></param>
        private void btnHelp_Click(object sender, EventArgs e)
        {
            HelpDialog dlg = new HelpDialog();

            dlg.HelpCaption = "How to: Interact with the browser.";
            StringBuilder sb = new StringBuilder();

            sb.Append("In the preview and on the slide you can interact with the browser window just as usual.");
            sb.AppendLine();
            sb.Append("The preview will be updated once a valid URL is specified.");
            dlg.HelpMessage = sb.ToString();
            dlg.ShowDialog();
        }
예제 #15
0
        private void ScheduledExecutionConfigurationForm_HelpButtonClicked(object sender, CancelEventArgs e)
        {
            Dictionary <string, Bitmap> images = new Dictionary <string, Bitmap>();

            images.Add("DIAGRAM", Properties.Resources.ScheduledExecutionHelp);
            var page = Properties.Resources.ScheduledExecutionHelpPage;

            using (HelpDialog dialog = new HelpDialog(page, images))
            {
                dialog.Title = "Scheduled Execution Help";
                dialog.ShowDialog();
            }
        }
예제 #16
0
        /// <summary>
        /// <see cref="Control.Click"/> event handler
        /// for the <see cref="PictureBox"/> <see cref="pcbHelpTesting"/>
        /// Shows a <see cref="HelpDialog"/> with help information on
        /// how to define testing conditions.
        /// </summary>
        /// <param name="sender">Source of the event.</param>
        /// <param name="e">An empty <see cref="EventArgs"/></param>
        private void pcbHelpTesting_Click(object sender, EventArgs e)
        {
            HelpDialog dlg = new HelpDialog();

            dlg.HelpCaption = "How to: Define correct responses.";
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("Adding correct responses simplifies the analysation process.");
            sb.Append("When the users responses is in the list of correct responses ");
            sb.Append("the column 'CorrectResponse' of the database will be filled ");
            sb.Append("with 'correct answered', so quick check for errors is possible.");
            dlg.HelpMessage = sb.ToString();
            dlg.ShowDialog();
        }
예제 #17
0
        /// <summary>
        /// <see cref="Control.Click"/> event handler
        /// for the <see cref="PictureBox"/> <see cref="pcbHelpTiming"/>
        /// Shows a <see cref="HelpDialog"/> with help information on
        /// how to define timing conditions.
        /// </summary>
        /// <param name="sender">Source of the event.</param>
        /// <param name="e">An empty <see cref="EventArgs"/></param>
        private void pcbHelpTiming_Click(object sender, EventArgs e)
        {
            HelpDialog dlg = new HelpDialog();

            dlg.HelpCaption = "How to: Stop web browser from beeing displayed";
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("Specify the response that the webbrowser slide waits for.");
            sb.Append("This can be a mouse button or a key or an elapsed time, or ");
            sb.AppendLine("a combination.");
            sb.AppendLine("Use the button 'Add condition' to add the condition to the list.");
            dlg.HelpMessage = sb.ToString();
            dlg.ShowDialog();
        }
예제 #18
0
        /// <summary>
        /// <see cref="Control.Click"/> event handler
        /// for the <see cref="PictureBox"/> <see cref="pcbHelpBrowseDepth"/>
        /// Shows a <see cref="HelpDialog"/> with help information on
        /// how to define slide groups.
        /// </summary>
        /// <param name="sender">Source of the event.</param>
        /// <param name="e">An empty <see cref="EventArgs"/></param>
        private void pcbHelpBrowseDepth_Click(object sender, EventArgs e)
        {
            HelpDialog dlg = new HelpDialog();

            dlg.HelpCaption = "How to: Allow or disable browsing.";
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("Set the depth to zero disables browsing for the subject at all.");
            sb.AppendLine("The depth otherwise indicates the maximum number of navigations (links clicked) the subject is allowed to make.");
            sb.AppendLine("Please note, that this also includes backward and forward links available on lots of web pages.");

            dlg.HelpMessage = sb.ToString();
            dlg.ShowDialog();
        }
예제 #19
0
        /// <summary>
        /// <see cref="Control.Click"/> event handler
        /// for the <see cref="PictureBox"/> <see cref="pcbHelpNaming"/>
        /// Shows a <see cref="HelpDialog"/> with help information.
        /// </summary>
        /// <param name="sender">Source of the event.</param>
        /// <param name="e">An empty <see cref="EventArgs"/></param>
        private void pcbHelpNaming_Click(object sender, EventArgs e)
        {
            HelpDialog dlg = new HelpDialog();

            dlg.HelpCaption = "How to: Name web browser slides.";
            StringBuilder sb = new StringBuilder();

            sb.Append("Specify a name for the starting browser page.");
            sb.Append("The category is an optional grouping possibility at slide level, ");
            sb.Append("that can be used in the statistics output.");

            dlg.HelpMessage = sb.ToString();
            dlg.ShowDialog();
        }
예제 #20
0
        /// <summary>
        /// <see cref="Control.Click"/> event handler
        /// for the <see cref="PictureBox"/> <see cref="pcbHelpTiming"/>
        /// Shows a <see cref="HelpDialog"/> with help information on
        /// how to define timing conditions.
        /// </summary>
        /// <param name="sender">Source of the event.</param>
        /// <param name="e">An empty <see cref="EventArgs"/></param>
        private void pcbHelpTiming_Click(object sender, EventArgs e)
        {
            HelpDialog dlg = new HelpDialog();

            dlg.HelpCaption = "How to: Stop slides from beeing displayed";
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("Specify the response that the stimulus slide waits for.");
            sb.Append("This can be a mouse button or a key or an elapsed time, or ");
            sb.AppendLine("a combination.");
            sb.Append("By clicking the checkbox 'but only in target areas' the mouse click that stops the ");
            sb.AppendLine("slide is restricted to the area of the targets defined in the next section.");
            dlg.HelpMessage = sb.ToString();
            dlg.ShowDialog();
        }
예제 #21
0
        /// <summary>
        /// <see cref="Control.Click"/> event handler
        /// for the <see cref="PictureBox"/> <see cref="pcbHelpNaming"/>
        /// Shows a <see cref="HelpDialog"/> with help information on
        /// how to define slide groups.
        /// </summary>
        /// <param name="sender">Source of the event.</param>
        /// <param name="e">An empty <see cref="EventArgs"/></param>
        private void pcbHelpNaming_Click(object sender, EventArgs e)
        {
            HelpDialog dlg = new HelpDialog();

            dlg.HelpCaption = "How to: Categorize slides.";
            StringBuilder sb = new StringBuilder();

            sb.Append("You can group multiple slides to one TRIAL, ");
            sb.Append("which is the unit OGAMA uses for analysation, ");
            sb.AppendLine("by right clicking in the slide treeview. ");
            sb.Append("The category is an optional grouping possibility at slide level, ");
            sb.Append("that can be used in the statistics output.");

            dlg.HelpMessage = sb.ToString();
            dlg.ShowDialog();
        }
예제 #22
0
        /// <summary>
        /// <see cref="Control.Click"/> event handler
        /// for the <see cref="PictureBox"/> <see cref="pcbHelpTiming"/>
        /// Shows a <see cref="HelpDialog"/> with help information on
        /// how to define timing conditions.
        /// </summary>
        /// <param name="sender">Source of the event.</param>
        /// <param name="e">An empty <see cref="EventArgs"/></param>
        private void pcbHelpTrigger_Click(object sender, EventArgs e)
        {
            HelpDialog dlg = new HelpDialog();

            dlg.HelpCaption = "How to: Define slide triggers.";
            StringBuilder sb = new StringBuilder();

            sb.Append("You can send a trigger signal to an output device at the beginning of each slide, ");
            sb.AppendLine("with the settings made in this tab. ");
            sb.Append("There is also the option to define a general trigger for all slides ");
            sb.Append("in the recording interface. ");
            sb.AppendLine("Don´t forget to enable trigger sending there.");

            dlg.HelpMessage = sb.ToString();
            dlg.ShowDialog();
        }
예제 #23
0
        public static string GetPowerBISaaSToken()
        {
            if (PBISaaSAuthResult == null || PBISaaSAuthResult.ExpiresOn < DateTime.UtcNow)
            {
                var dialog = new HelpDialog(
                    "Master account required",
                    "In order to create groups and upload content, you need to sign in with your master account.",
                    "https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-migrate-from-powerbi-embedded/#accounts-within-azure-ad"
                    );

                var dialogResult = dialog.ShowDialog();

                AuthenticationContext authContext = new AuthenticationContext(authorityUri);
                PBISaaSAuthResult = authContext.AcquireToken(resourceUri, clientId, redirectUri, PromptBehavior.Always);
            }

            return(PBISaaSAuthResult.AccessToken);
        }
예제 #24
0
        /// <summary>
        /// <see cref="Control.Click"/> event handler
        /// for the <see cref="PictureBox"/> <see cref="pchHelpTargets"/>
        /// Shows a <see cref="HelpDialog"/> with help information on
        /// how to define targets.
        /// </summary>
        /// <param name="sender">Source of the event.</param>
        /// <param name="e">An empty <see cref="EventArgs"/></param>
        private void pchHelpTargets_Click(object sender, EventArgs e)
        {
            HelpDialog dlg = new HelpDialog();

            dlg.HelpCaption = "How to: Define target areas.";
            StringBuilder sb = new StringBuilder();

            sb.Append("When adding target areas, the subjects valid mouse clicks can be restricted ");
            sb.AppendLine("to specific regions of the slide.");
            sb.Append("For example in a multiple choice question where the subject has ");
            sb.Append("the choice between four figures, each one could be defined as an ");
            sb.Append("target area by clicking 'Add target rectangle' and clicking and dragging ");
            sb.AppendLine("the referring rectangle on the slide.");
            sb.Append("After this definition the newly created target appears in the target list ");
            sb.AppendLine("and can be used in the 'Timing' section for restricting users valid responses");
            dlg.HelpMessage = sb.ToString();
            dlg.ShowDialog();
        }
예제 #25
0
        /// <summary>
        /// <see cref="Control.Click"/> event handler
        /// for the <see cref="Button"/> <see cref="btnHelp"/>
        /// Shows a <see cref="HelpDialog"/> with help information on
        /// tips and tricks.
        /// </summary>
        /// <param name="sender">Source of the event.</param>
        /// <param name="e">An empty <see cref="EventArgs"/></param>
        private void btnHelpModule_Click(object sender, EventArgs e)
        {
            HelpDialog dlg = new HelpDialog();

            dlg.HelpCaption = "TIPS & TRICKS:";
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("If some elements overlay each other, press during selection the ALT key to switch elements.");
            sb.AppendLine("For images: ");
            sb.Append("Press CONTROL key during creation to get an original sized image, ");
            sb.AppendLine("press ALT key to resize proportional.");
            sb.AppendLine();
            sb.AppendLine("Layout: ");
            sb.AppendLine("Press the DELETE key to remove elements.");
            sb.AppendLine("+: Bring forward");
            sb.AppendLine("-: Send backward");
            sb.AppendLine("PgDown: Send to back");
            sb.AppendLine("PgUp: Bring to front");
            dlg.HelpMessage = sb.ToString();
            dlg.ShowDialog();
        }
예제 #26
0
 private static void OnHelpDialogVisibleChange(DependencyObject d, DependencyPropertyChangedEventArgs e)
 {
     if (!(d is Window parent))
     {
         return;
     }
     // when DialogVisible is set to true we create a new dialog
     // box and set its DataContext to that of its parent
     if ((bool)e.NewValue)
     {
         HelpDialogWindow = new HelpDialog
         {
             DataContext           = parent.DataContext,
             Width                 = 350,
             Height                = 350,
             WindowStartupLocation = WindowStartupLocation.CenterOwner
         };
         HelpDialogWindow.ShowDialog();
     }
     else
     {
         HelpDialogWindow.Close();
     }
 }
예제 #27
0
        private void DisplayAbout(object obj)
        {
            var helpDialog = new HelpDialog();

            helpDialog.ShowDialog();
        }
예제 #28
0
 private void ShowAddRemoveHelpCommand_Execute()
 {
     HelpViewModel vm     = new HelpViewModel("Sprachen hinzufügen und löschen", "Um eine Sprache zu löschen, dürfen keine Verweise mehr auf ihr liegen. \nBedenke, dass die Sprachen nur für die atuelle Datei gelten.");
     HelpDialog    dialog = new HelpDialog(vm); dialog.ShowDialog();
 }
예제 #29
0
 /**
  * <summary>This is a menu option that will show some help documentation that was paraphrased from Netsmart's own publicly documented information on
  * this web service.</summary>
  */
 private void helpToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     /* Show help information for this program. */
     HelpDialog.ShowDialog();
 }
예제 #30
0
        private void ShowHelpDialog(object sender, RoutedEventArgs e)
        {
            var helpscreen = new HelpDialog();

            helpscreen.ShowDialog();
        }