Exemple #1
0
 public void WriteXML(XmlWriter xmlWriter)
 {
     WriteXMLStartElement(xmlWriter);
     ActorViewModel.WriteXML(xmlWriter);
     InitiativeValueViewModel.WriteXML(xmlWriter);
     xmlWriter.WriteEndElement();
 }
Exemple #2
0
 public virtual void ReadXML(XmlNode xmlNode, EncounterViewModel encounterViewModel = null)
 {
     try
     {
         foreach (XmlNode childNode in xmlNode.ChildNodes)
         {
             if (childNode.Name == "InitiativeValue")
             {
                 InitiativeValueViewModel = new InitiativeValueViewModel(childNode);
             }
         }
     }
     catch (XmlException e)
     {
         MessageBox.Show(e.ToString());
     }
 }
Exemple #3
0
 private void ExecuteOpenInitiativeDialog()
 {
     InitiativeValueViewModel.OpenInitDialog(ActorViewModel.InitiativeMod);
     NotifyPropertyChanged("InitiativeValueViewModel");
 }
Exemple #4
0
 public InitiativeCardViewModel()
 {
     _initiativeValueViewModel = new InitiativeValueViewModel();
     InitCommands();
 }