Esempio n. 1
0
 public override void LoadXmlDoc(System.Xml.XmlDocument x)
 {
     foreach (XmlNode n in x.DocumentElement.ChildNodes)
     {
         string val = n.InnerText.Trim();
         switch (n.Name)
         {
             case "animationgroup":
                 AnimGroup = new AnimationGroup(Helpers.NodeToDoc(n));
                 break;
         }
     }
 }
Esempio n. 2
0
 private void btnNew_Click(object sender, EventArgs e)
 {
     string path = Microsoft.VisualBasic.Interaction.InputBox("Name: ");
     AnimationGroup tmpAGroup = new AnimationGroup() { BasePath = path };
     File.WriteAllText("data/animationgroups/" + path + "/data.xml", tmpAGroup.ToXml());
 }
Esempio n. 3
0
 public AnimationGroupEditor(string path)
 {
     AGroup = new AnimationGroup(path);
     InitializeComponent();
 }