private void MessageList_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (fieldListWindow.messageList.SelectedItem != null)
     {
         if (!((MessageViewModel)(fieldListWindow.messageList.SelectedItem)).IsMassage)
         {
             currentPage.AddLine(((MessageViewModel)(fieldListWindow.messageList.SelectedItem)).DataField);
         }
     }
 }
 private void OkBtn_Click(object sender, RoutedEventArgs e)
 {
     if (fieldListWindow.fieldList.SelectedItem != null)
     {
         currentPage.AddLine((DataField)fieldListWindow.fieldList.SelectedItem);
     }
 }