Ejemplo n.º 1
0
        /// <summary>
        /// Parses an Entry Logger document file.
        /// </summary>
        /// <param name="filePath">Path to the document to be parsed.</param>
        /// <returns>Object representation of the document.</returns>
        public ELDocument ParseFile(string filePath)
        {
            Document = new ELDocument(filePath);
            ParseLines(File.ReadLines(filePath));

            return(Document);
        }
Ejemplo n.º 2
0
        private void mniFileOpen_Click(object sender, EventArgs e)
        {
            if (dlgOpen.ShowDialog() == DialogResult.OK)
            {
                DocumentParser parser = new DocumentParser(dlgOpen.FileName);
                elDocument = parser.Document;

                UpdateStatistics();
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Contructs a data entry form with a model from a document.
 /// </summary>
 /// <param name="elDocument">Entry Logger document object.</param>
 public DataEntryForm(ELDocument elDocument) : this()
 {
     this.elDocument = elDocument;
     PopulateForm();
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Constructs an empty Entry Logger document parser.
 /// </summary>
 public DocumentParser()
 {
     Document = new ELDocument();
 }
Ejemplo n.º 5
0
 private void mniFileNew_Click(object sender, EventArgs e)
 {
     elDocument = new ELDocument();
     UpdateStatistics();
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Constructs a main form already with a document associated with it.
 /// </summary>
 /// <param name="elDocument">Entry Logger document.</param>
 public MainForm(ELDocument elDocument) : this()
 {
     this.elDocument = elDocument;
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Contructs an entry model form with an Entry Logger document attached to it.
 /// </summary>
 /// <param name="elDocument">Entry Logger document associated with the form.</param>
 public ModelForm(ELDocument elDocument) : this()
 {
     this.elDocument = elDocument;
     PopulateList();
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Initializes a spreadsheet form with a document attached to it.
 /// </summary>
 /// <param name="elDocument">Entry Logger document to populate the spreadsheet with.</param>
 public SpreadsheetForm(ELDocument elDocument) : this()
 {
     this.elDocument = elDocument;
     PopulateSpreadsheet();
 }