Example #1
0
 public TemplateStruct(Guid id, string name, string location, string description)
 {
     this._ID            = id;
     this._Name          = name;
     this._Location      = location;
     this._Description   = description;
     this._FilePath      = "";
     this._DocumentNames = new ArrayList();
     this._TemplateValid = true;
     this._TreeNode      = null;
     this._DataTable     = null;
     this._SourceDataSet = null;
     this._NodeChecked   = true;
     this._SavedPath     = "";
     this._Fields        = new System.Collections.Hashtable();
     this.linkedTS       = null;
 }
Example #2
0
        public void InitDataTable()
        {
            this._DataTable = new ProductiveAdvantage.MasterDS.ChildKeyValueDataTable();
            this._DataTable.BeginInit();

            // fill with fields
            foreach (DictionaryEntry entry in this.Fields)
            {
                this._DataTable.AddChildKeyValueRow(entry.Key.ToString(), "", true, "", true);
            }

            // fill with names
            foreach (MasterDS.ChildKeyValueRow row in this._DataTable)
            {
                row.KeyName = DatabaseOptimizer.GetKeyName(row.Key);
            }

            this._DataTable.EndInit();
            this._DataTable.AcceptChanges();
        }