Exemplo n.º 1
0
        public override void ReadXml(XmlReader reader)
        {
            base.ReadXml(reader);
            for (int i = 0; i < 4 && reader.Read(); i++)
            {
                switch (reader.GetAttribute(0))
                {
                case "AddVariables":
                    AddVariables.ReadXml(reader);
                    break;

                case "EditVariables":
                    EditVariables.ReadXml(reader);
                    break;

                case "RenameVariables":
                    RenameVariables.ReadXml(reader);
                    break;

                case "RemoveVariables":
                    RemoveVariables.ReadXml(reader);
                    break;
                }
            }
        }
Exemplo n.º 2
0
        public override void WriteXml(XmlWriter writer)
        {
            base.WriteXml(writer);

            writer.WriteStartElement("parameter");
            writer.WriteAttributeString("name", "AddVariables");
            AddVariables.WriteXml(writer);
            writer.WriteEndElement();

            writer.WriteStartElement("parameter");
            writer.WriteAttributeString("name", "EditVariables");
            EditVariables.WriteXml(writer);
            writer.WriteEndElement();

            writer.WriteStartElement("parameter");
            writer.WriteAttributeString("name", "RenameVariables");
            RenameVariables.WriteXml(writer);
            writer.WriteEndElement();

            writer.WriteStartElement("parameter");
            writer.WriteAttributeString("name", "RemoveVariables");
            RemoveVariables.WriteXml(writer);
            writer.WriteEndElement();
        }
Exemplo n.º 3
0
 private void AddVariable_Click(object sender, RoutedEventArgs e)
 {
     AddVariables AddVar = new AddVariables();
     AddVar.ShowDialog();
     SetVariables();
 }