Exemplo n.º 1
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();
 }
Exemplo n.º 2
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();
 }
Exemplo n.º 3
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();
 }
Exemplo n.º 4
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
    /// 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();
    }
Exemplo n.º 5
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();
 }
Exemplo n.º 6
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();
    }
Exemplo n.º 7
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();
 }
Exemplo n.º 8
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();
    }
Exemplo n.º 9
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();
    }
Exemplo n.º 10
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();
    }
Exemplo n.º 11
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();
 }
Exemplo n.º 12
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();
    }
Exemplo n.º 13
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();
 }
Exemplo n.º 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
 /// 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();
 }
Exemplo n.º 15
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();
 }
Exemplo n.º 16
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();
 }
Exemplo n.º 17
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();
 }