/// <summary>
 /// Event handler for the <c>Click</c> event associated with the 'Change Chart Scale' context menu option attached to the <c>ListBox</c> containing the watch
 /// variables that have been added to the workset.
 /// </summary>
 /// <remarks>This menu option is only relevant to the form used to configure the chart recorder.</remarks>
 /// <param name="sender">Reference to the object that raised the event.</param>
 /// <param name="e">Parameter passed from the object that raised the event.</param>
 protected override void m_MenuItemChangeChartScaleFactor_Click(object sender, EventArgs e)
 {
     try
     {
         FormChangeChartScale formChangeChartScale = new FormChangeChartScale(m_ListBox1);
         formChangeChartScale.CalledFrom = this;
         formChangeChartScale.ShowDialog();
     }
     catch (Exception exception)
     {
         MessageBox.Show(exception.Message, Resources.MBCaptionError, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
        /// <summary>
        /// Event handler for the <c>Click</c> event associated with the 'Change Chart Scale' context menu option attached to the <c>ListBox</c> containing the watch
        /// variables that have been added to the workset. Calls the form which allows the user to modify the chart scaling associated with the selected channel.
        /// </summary>
        /// <param name="sender">Reference to the object that raised the event.</param>
        /// <param name="e">Parameter passed from the object that raised the event.</param>
        protected override void m_MenuItemChangeChartScaleFactor_Click(object sender, EventArgs e)
        {
            int selectedChannelIndex = m_ListBox1.SelectedIndex;

            short oldIdentifier = ((WatchItem_t)m_ListBox1.Items[selectedChannelIndex]).OldIdentifier;

            try
            {
                FormChangeChartScale formChangeChartScale = new FormChangeChartScale(m_ListBox1);
                formChangeChartScale.CalledFrom = this;
                formChangeChartScale.ShowDialog();
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message, Resources.MBCaptionError, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
        /// <summary>
        /// Event handler for the <c>Click</c> event associated with the 'Change Chart Scale' context menu option attached to the <c>ListBox</c> containing the watch 
        /// variables that have been added to the workset. Calls the form which allows the user to modify the chart scaling associated with the selected channel.
        /// </summary>
        /// <param name="sender">Reference to the object that raised the event.</param>
        /// <param name="e">Parameter passed from the object that raised the event.</param>
        protected override void m_MenuItemChangeChartScaleFactor_Click(object sender, EventArgs e)
        {
            int selectedChannelIndex = m_ListBox1.SelectedIndex;

            short oldIdentifier = ((WatchItem_t)m_ListBox1.Items[selectedChannelIndex]).OldIdentifier;

            try
            {
                FormChangeChartScale formChangeChartScale = new FormChangeChartScale(m_ListBox1);
                formChangeChartScale.CalledFrom = this;
                formChangeChartScale.ShowDialog();
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message, Resources.MBCaptionError, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
 /// <summary>
 /// Event handler for the <c>Click</c> event associated with the 'Change Chart Scale' context menu option attached to the <c>ListBox</c> containing the watch 
 /// variables that have been added to the workset. Calls the form which allows the user to modify the chart scaling associated with the selected channel.
 /// </summary>
 /// <param name="sender">Reference to the object that raised the event.</param>
 /// <param name="e">Parameter passed from the object that raised the event.</param>
 protected override void m_MenuItemChangeChartScaleFactor_Click(object sender, EventArgs e)
 {
     try
     {
         FormChangeChartScale formChangeChartScale = new FormChangeChartScale(m_ListBox1);
         formChangeChartScale.CalledFrom = this;
         formChangeChartScale.ShowDialog();
     }
     catch (Exception exception)
     {
         MessageBox.Show(exception.Message, Resources.MBCaptionError, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }