Exemple #1
0
 private void buildOptionalNormal(String[] bricks)
 {
     for (int i = 2; i < bricks.Length; i++)
     {
         OptionalInfo newOI = new OptionalInfo(leftEqual(bricks[i]), rightEqual(bricks[i]));
         listOfOptionalInfo.Add(newOI);
     }
 }
Exemple #2
0
 private void addOptionalStandard()
 {
     allOptionals = thisV.getOptionals();
     for (int i = 0; i < allOptionals.Count; i++)
     {
         OptionalInfo thisOption = allOptionals[i];
         this.Visits.Rows.Add();
         this.Visits.Rows[i + 2].Cells[0].Value = thisOption.getTag();
         this.Visits.Rows[i + 2].Cells[1].Value = thisOption.getValue();
     }
 }
Exemple #3
0
        private void buildOptionalFirst()
        {
            baseTags = new textParser("visitTemplate.txt", "");
            String readText = baseTags.Read();

            String[] bricks = splitter(readText, ';');
            for (int i = 0; i < bricks.Length; i++)
            {
                OptionalInfo newOI = new OptionalInfo(leftEqual(bricks[i]), rightEqual(bricks[i]));
                listOfOptionalInfo.Add(newOI);
            }
        }
Exemple #4
0
        private void buildOptionalFirst()
        {
            Char delimiterEqual = '=';

            baseTags = new textParser("patientTemplate.txt", "");
            String readText           = baseTags.Read();
            Char   delimiterSemicolon = ';';

            String [] bricks = readText.Split(delimiterSemicolon);
            for (int i = 0; i < bricks.Length; i++)
            {
                OptionalInfo newOI = new OptionalInfo(leftEqual(bricks[i]), rightEqual(bricks[i]));
                listOfOptionalInfo.Add(newOI);
            }
        }
Exemple #5
0
        private void addOptionalStandard()
        {
            int indexRow = 0;

            this.optionalsGrid.Rows.Clear();
            List <OptionalInfo> optionalInfo = thisP.getOptionals();

            for (int i = 0; i < optionalInfo.Count; i++)
            {
                OptionalInfo thisOp = optionalInfo[i];
                this.optionalsGrid.Rows.Add();
                this.optionalsGrid.Rows[indexRow].Cells[0].Value = thisOp.getTag();
                this.optionalsGrid.Rows[indexRow].Cells[1].Value = thisOp.getValue();
                indexRow++;
            }
        }