コード例 #1
0
 private void DeselectMessageTypes(MessageTypeCollection messageTypes)
 {
     foreach (MessageTypeTreeModel messageType in messageTypes)
     {
         messageType.IsSelected = false;
         DeselectMessageTypes(messageType.MessageSubtypes);
     }
 }
コード例 #2
0
        public void SetAndDisplayDataFile(string filePath, MessageTypeCollection messageTypes)
        {
            DataFileInfo dataFileInfo = new DataFileInfo(filePath);

            SetDataFile(dataFileInfo);
            MyDataFile.ParseDataFromFileIntoBytes(filePath);
            DisplayDataFile(messageTypes);
        }
コード例 #3
0
 private void RemoveMessageType(MessageTypeTreeModel toFind, MessageTypeCollection typeCollection)
 {
     if (typeCollection.Contains(toFind))
     {
         typeCollection.Remove(toFind);
     }
     else
     {
         foreach (MessageTypeTreeModel messageSubtype in typeCollection)
         {
             RemoveMessageType(toFind, messageSubtype.MessageSubtypes);
         }
     }
 }
コード例 #4
0
        public MessageTypeTreeViewModel()
        {
            AddTypeCommand = new MyICommand <string>(OnAddType);
            DeleteCommand  = new MyICommand <MessageTypeTreeModel>(OnDelete);

            MessageTypes = new MessageTypeCollection
            {
                new MessageTypeTreeModel()
            };

            Vm_MessageFields = new MessageFieldViewModel()
            {
                AddWord      = new MyICommand <string>(OnAddWord),
                SubtractWord = new MyICommand <string>(OnSubtractWord)
            };
        }
コード例 #5
0
 public void DisplayDataFile(MessageTypeCollection messageTypes)
 {
     BinaryMessages = messageTypes.ParseDataFromBytesIntoMessages(MyDataFile.bytes);
 }