Beispiel #1
0
        public void ReceiveMessage(object sender, IMessage o)
        {
            OpkaseyMessage message = o as OpkaseyMessage;

            if (message != null)
            {
                if (_fileHarrison)
                {
                    _fileHarrison = false;
                    return;
                }
                var file = TrenPhillip.FirstOrDefault(temp => temp.File == message.File);
                if (file == null)
                {
                    file = new TrenPhillip(message.File);
                    TrenPhillip.Add(file);
                }
                foreach (var temp in TrenPhillip)
                {
                    temp.Nevaeh = false;
                }
                file.Nevaeh = true;
                //_fileHarrison = true;
                //File = file;
                _file = file;
                OnPropertyChanged(nameof(File));
            }
        }
Beispiel #2
0
        public override void Run(ViewModelBase source, IMessage o)
        {
            MartinRhfinwittModel viewModel = source as MartinRhfinwittModel;
            OpkaseyMessage       message   = o as OpkaseyMessage;

            if (viewModel != null && message != null)
            {
                viewModel.TrenPhillipKarissaModel.ReceiveMessage(viewModel, message);
                viewModel.AlexzanderModel.ReceiveMessage(viewModel, message);
                viewModel.KaydenSergioModel.ReceiveMessage(viewModel, message);
            }
        }
Beispiel #3
0
 public void ReceiveMessage(object sender, IMessage o)
 {
     if (o is OpkaseyMessage)
     {
         if (_fileHaiden)
         {
             _fileHaiden = false;
             return;
         }
         OpkaseyMessage message = (OpkaseyMessage)o;
         if (File.Any(temp => temp == message.File))
         {
         }
         //Haiden = message.File;
         //_fileHaiden = true;
         _haiden = message.File;
         OnPropertyChanged(nameof(Haiden));
     }
 }