public static HeaderDefinition LoadFromFile(string fileName)
        {
            var result = new HeaderDefinition();

            result.Load(fileName);
            return(result);
        }
Exemple #2
0
        public void ReadFormatFile(string fileName)
        {
            headers             = HeaderDefinition.LoadFromFile(fileName);
            txtName.Text        = headers.Name;
            txtProperties.Lines = headers.Properties.ToArray();

            lastFile = fileName;
        }
Exemple #3
0
 private void FormToDefinition()
 {
     headers            = new HeaderDefinition();
     headers.Name       = txtName.Text;
     headers.Properties = (from line in txtProperties.Lines
                           let lt = line.Trim()
                                    select lt).ToList();
 }
    public void ReadFormatFile(string fileName)
    {
      headers = HeaderDefinition.LoadFromFile(fileName);
      txtName.Text = headers.Name;
      txtProperties.Lines = headers.Properties.ToArray();

      lastFile = fileName;
    }
Exemple #5
0
 public static HeaderDefinition LoadFromFile(string fileName)
 {
   var result = new HeaderDefinition();
   result.Load(fileName);
   return result;
 }
 private void FormToDefinition()
 {
   headers = new HeaderDefinition();
   headers.Name = txtName.Text;
   headers.Properties = (from line in txtProperties.Lines
                         let lt = line.Trim()
                         select lt).ToList();
 }