Пример #1
0
 private void btnSelectNode_Click(object sender, RoutedEventArgs e)
 {
     sectionIdentifierSelector.Page = page;
     sectionIdentifierSelector.ShowSelector();
     if (sectionIdentifierSelector.SectionIdentifier != null)
     {
         identifier      = sectionIdentifierSelector.SectionIdentifier;
         tbBaseNode.Text = sectionIdentifierSelector.SectionIdentifier.Name;
     }
 }
Пример #2
0
        private void btnSelect_Click(object sender, RoutedEventArgs e)
        {
            if (SelectedNode == null)
            {
                ErrorAlert.Show("No node selected.\nPlease select a node.");
                return;
            }
            ControlIdentifier            = new ControlIdentifier();
            ControlIdentifier.Name       = Utils.GetFriendlyHtmlName(SelectedNode);
            ControlIdentifier.Identifier = SelectedNode.XPath;

            SectionIdentifier            = new SectionIdentifier();
            SectionIdentifier.Name       = Utils.GetFriendlyHtmlName(SelectedNode);
            SectionIdentifier.Identifier = SelectedNode.XPath;

            Close();
        }
 ///<summary>Sets the value of the <c>&lt;SectionIdentifiers&gt;</c> element.</summary>
 /// <param name="SectionIdentifier">A SectionIdentifier</param>
 ///<remarks>
 /// <para>This form of <c>setSectionIdentifiers</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>SectionIdentifiers</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.6</para>
 /// </remarks>
 public void SetSectionIdentifiers( SectionIdentifier SectionIdentifier )
 {
     RemoveChild( Sif3assessmentDTD.SIF3ASSESSMENTSECTION_SECTIONIDENTIFIERS);
     AddChild( Sif3assessmentDTD.SIF3ASSESSMENTSECTION_SECTIONIDENTIFIERS, new SectionIdentifiers( SectionIdentifier ) );
 }
Пример #4
0
 public override string ToString()
 {
     return($"{SectionIdentifier.TrimEnd('\0', ' ')} length: {SectionLength}");
 }