|
@@ -42,8 +42,8 @@ namespace Compdfkit_Tools.Measure.Property
|
|
|
|
|
|
private void NoteTextBox_TextChanged(object sender, TextChangedEventArgs e)
|
|
|
{
|
|
|
- LineEvent.UpdateAttrib(AnnotAttrib.NoteText, NoteTextBox.Text);
|
|
|
- LineEvent.UpdateAnnot();
|
|
|
+ LineEvent?.UpdateAttrib(AnnotAttrib.NoteText, NoteTextBox.Text);
|
|
|
+ LineEvent?.UpdateAnnot();
|
|
|
}
|
|
|
|
|
|
private void FontStyleCombox_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
|
@@ -82,8 +82,8 @@ namespace Compdfkit_Tools.Measure.Property
|
|
|
{
|
|
|
if (IsLoadedData)
|
|
|
{
|
|
|
- LineEvent.UpdateAttrib(AnnotAttrib.FontSize, (sender as ComboBox).SelectedItem);
|
|
|
- LineEvent.UpdateAnnot();
|
|
|
+ LineEvent?.UpdateAttrib(AnnotAttrib.FontSize, (sender as ComboBox).SelectedItem);
|
|
|
+ LineEvent?.UpdateAnnot();
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -145,11 +145,11 @@ namespace Compdfkit_Tools.Measure.Property
|
|
|
case AnnotAttrib.FontName:
|
|
|
{
|
|
|
string fontName= (string)annotEvent.Attribs[AnnotAttrib.FontName];
|
|
|
- if (fontName == "Courier New")
|
|
|
+ if (fontName.Contains("Courier"))
|
|
|
{
|
|
|
FontCombox.SelectedIndex = 1;
|
|
|
}
|
|
|
- else if (fontName == "Arial")
|
|
|
+ else if (fontName == "Arial" || fontName.Contains("Helvetica"))
|
|
|
{
|
|
|
FontCombox.SelectedIndex = 0;
|
|
|
|
|
@@ -167,6 +167,9 @@ namespace Compdfkit_Tools.Measure.Property
|
|
|
case AnnotAttrib.FontSize:
|
|
|
SetFontSize(Convert.ToDouble(annotEvent.Attribs[attrib]));
|
|
|
break;
|
|
|
+ case AnnotAttrib.NoteText:
|
|
|
+ NoteTextBox.Text= annotEvent.Attribs[attrib].ToString();
|
|
|
+ break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|