public IdentifyFeatureClassItem(MSCFeatureClass fc, ObjectIdCollection ids)
 {
     this.Name         = fc.Name;
     this.Tag          = new FCTag(fc);
     this.IDs          = fc.GetFeatureIds(ids);
     this.SubtypeItems = Identify.BuildSubtypeItems(fc, this.IDs);
 }
 public IdentifyFeatureClassItem(string name, MSCFeatureClass fc, ObjectIdCollection ids)
 {
     this.Name         = name;
     this.Tag          = new FCTag(fc);
     this.IDs          = fc.GetFeatureIds(ids);
     this.SubtypeItems = new List <Identify.IdentifyFeatureClassItem>();
 }
 private void CommitEdit(DataRowView currentRow)
 {
     try
     {
         System.Windows.Forms.Application.UseWaitCursor = true;
         MSCFeatureClass    activeFeatureClassOrSubtype = AfaDocData.ActiveDocData.GetActiveFeatureClassOrSubtype();
         ObjectIdCollection ids            = new ObjectIdCollection(activeFeatureClassOrSubtype.GetFeatureIds(this.currentObjectIds));
         Document           parentDocument = activeFeatureClassOrSubtype.ParentDataset.ParentDocument;
         Database           arg_35_0       = parentDocument.Database;
         using (parentDocument.LockDocument())
         {
             using (Transaction transaction = parentDocument.TransactionManager.StartTransaction())
             {
                 try
                 {
                     activeFeatureClassOrSubtype.SetEntityFields(ids, currentRow.Row, transaction);
                     parentDocument.TransactionManager.QueueForGraphicsFlush();
                     parentDocument.TransactionManager.FlushGraphics();
                     parentDocument.Editor.UpdateScreen();
                 }
                 catch
                 {
                 }
                 finally
                 {
                     transaction.Commit();
                 }
             }
         }
         if (object.Equals(currentRow.Row["Key"], activeFeatureClassOrSubtype.TypeField))
         {
             activeFeatureClassOrSubtype.UpdateSubtypeLayers(ids, currentRow.Row["Value"]);
         }
         System.Windows.Forms.Application.UseWaitCursor = false;
     }
     catch
     {
         System.Windows.Forms.Application.UseWaitCursor = false;
     }
 }