msgSource.xaml.vb 729 B

12345678910111213141516171819
  1. Public Class msgSource
  2. Dim Source As ListItem = Nothing
  3. Public Sub New(ByVal Source As ListItem)
  4. InitializeComponent()
  5. Me.Source = Source
  6. Me.textName.Text = Source.MainText
  7. Me.textURL.Text = Source.SubText
  8. End Sub
  9. Private Sub textName_TextChanged(ByVal sender As Object, ByVal e As System.Windows.Controls.TextChangedEventArgs) Handles textName.TextChanged
  10. If Not IsNothing(Source) Then Source.MainText = textName.Text
  11. End Sub
  12. Private Sub textURL_TextChanged(ByVal sender As Object, ByVal e As System.Windows.Controls.TextChangedEventArgs) Handles textURL.TextChanged
  13. If Not IsNothing(Source) Then Source.SubText = textURL.Text
  14. End Sub
  15. End Class