using System; using System.Collections; using System.Collections.Specialized; using System.Text; namespace P4API { public class P4Form : P4Result { internal P4Form(string FormCommand) { m_FormCommand = FormCommand; } private string m_FormCommand; private P4ResultRecord m_result; private P4ResultRecord _Result { get { if (m_result == null) { m_result = (P4ResultRecord)TaggedOutputs[0]; } return m_result; } } internal Hashtable FormDictionary { get { return (Hashtable)_Result; } } public string FormCommand { get { return m_FormCommand; } } public string this[string Index] //Indexer { get { return (string)_Result[Index]; } set { _Result[Index] = value; } } public string[] Keys { get { //Spin through and strip out the specdef field... users shouldn't be updating this one anyway. ArrayList alKeys = new ArrayList(); foreach (string s in _Result.Keys) { if (s != "specdef") alKeys.Add(s); } return (string[]) alKeys.ToArray(typeof(string)); } } public string[] getArray(string var) { return _Result.getArray(var); } public void setArray(string Variable, string[] ArrayValues) { _Result.setArray(Variable, ArrayValues); } } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#9 | 5830 | Shawn Hladky | P4.Net: reorg to support release branches | ||
#8 | 5812 | Shawn Hladky | P4.Net: More documentation. | ||
#7 | 5798 | Shawn Hladky |
P4.Net... still not ready for beta Added license to all files Added several doc files Misc bugs |
||
#6 | 5438 | Shawn Hladky | refactoring, and documentation code | ||
#5 | 5433 | Shawn Hladky | P4.Net More refactoring | ||
#4 | 5431 | Shawn Hladky |
Refactoring... step 1. |
||
#3 | 5411 | Shawn Hladky | WIP -- forms are working now. | ||
#2 | 5362 | Shawn Hladky | Chipping away at the API changes | ||
#1 | 5349 | Shawn Hladky |
Initial check-in for the new API interface. Nothing works yet, but it should compile at least. |