Exemplo n.º 1
0
 public MapTemplateClass(int int_1, MapCartoTemplateLib.MapTemplateGallery mapTemplateGallery_1)
 {
     this.OID = int_1;
     this.MapTemplateGallery = mapTemplateGallery_1;
     if (int_1 == -1)
     {
         this.Guid = System.Guid.NewGuid().ToString();
     }
     else
     {
         IRow row = null;
         row = this.MapTemplateGallery.MapTemplateClassTable.GetRow(this.OID);
         try
         {
             this.Guid = RowAssisant.GetFieldValue(row, "Guid").ToString();
         }
         catch
         {
         }
         if (string.IsNullOrEmpty(this.Guid))
         {
             this.Guid = System.Guid.NewGuid().ToString();
             RowAssisant.SetFieldValue(row, "Guid", this.Guid);
             row.Store();
         }
     }
 }
Exemplo n.º 2
0
 public void Load()
 {
     if (this.OID != -1)
     {
         IRow row = null;
         row                = this.MapTemplateGallery.MapTemplateParamTable.GetRow(this.OID);
         this.Name          = RowAssisant.GetFieldValue(row, "Name").ToString();
         this.AllowNull     = Convert.ToInt32(RowAssisant.GetFieldValue(row, "AllowNull")) == 1;
         this.ParamDataType = (DataType)Convert.ToInt32(RowAssisant.GetFieldValue(row, "DataType"));
         this.Description   = RowAssisant.GetFieldValue(row, "Description").ToString();
     }
 }
Exemplo n.º 3
0
 protected virtual void Initlize()
 {
     if (this.OID != -1)
     {
         IRow row = this.MapTemplateGallery.MapTemplateElementTable.GetRow(this.OID);
         this.Name       = RowAssisant.GetFieldValue(row, "Name").ToString();
         this.m_pElement = this.method_1(RowAssisant.GetFieldValue(row, "Element"));
         if (this.m_pElement is IMapSurroundFrame)
         {
             this.Style = (this.m_pElement as IMapSurroundFrame).MapSurround;
         }
         string str = RowAssisant.GetFieldValue(row, "Location").ToString();
         this.ElementLocation = new MapCartoTemplateLib.ElementLocation(str);
         IPropertySet set = this.method_3(RowAssisant.GetFieldValue(row, "Attributes"));
         if (set != null)
         {
             this.PropertySet = set;
         }
     }
 }