/tools/PhyreFly/src/PFOutputAttributes.cs
C# | 42 lines | 39 code | 3 blank | 0 comment | 0 complexity | e8fd0e9c241b7ecdf67553717dfe583b MD5 | raw file
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Xml.Linq;
- using System.Windows.Forms;
-
- namespace PhyreFly
- {
- public class PFOutputAttributes
- {
- public PFOutputAttributes(XElement node)
- {
- m_node = node;
- }
-
- public bool ReadFromFile()
- {
- try
- {
- Mode = m_node.Attribute("mode");
- Filename = m_node.Attribute("filename");
- RCName = m_node.Attribute("rcname");
- FileList = m_node.Attribute("fileList");
- PathPrefix = m_node.Attribute("pathprefix");
- return true;
- }
- catch (Exception e)
- {
- MessageBox.Show("Failed parsing output attributes: {0}", e.Message);
- return false;
- }
- }
-
- private XElement m_node;
- public XAttribute Mode;
- public XAttribute Filename;
- public XAttribute RCName;
- public XAttribute FileList;
- public XAttribute PathPrefix;
- }
- }