예제 #1
0
        internal void ApplyInternal(CryptoDeleted deleted)
        {
            foreach (var t in BuyOrSell)
            {
                Deletes.Add(t.Id);
            }

            StateUpdateLoop();
        }
예제 #2
0
 public override void Delete(EarthworkBlock block)
 {
     //移除节点的所有元素(目的:解除图形配置),然后移除节点
     block.Delete(this, block.ElementIds);
     Blocks.Remove(block);
     Deletes.Add(block);
     ////TODO 清空相关的信息
     //FaceRecorderForRevit recorder = EarthworkBlockingConstraints.GetRecorder(nameof(EarthworkBlockingForm), Doc);
     //recorder.WriteValue(SaveKeyHelper.GetSaveKeyOfEarthworkBlockSize(block.Id), "");
     //recorder.WriteValue(SaveKeyHelper.GetSaveKeyOfEarthworkBlock(block.Id), "");
     //recorder.WriteValue(SaveKeyHelper.GetSaveKeyOfEarthworkBlockCPSettingsSize(block.Id), "");
     //recorder.WriteValue(SaveKeyHelper.GetSaveKeyOfEarthworkBlockCPSettings(block.Id), "");
 }
예제 #3
0
 public override void Delete(EarthworkBlocking blocking, ElementId elementId)
 {
     if (!ElementIds.Exists(p => p.IntegerValue == elementId.IntegerValue))
     {
         return;
     }
     ElementIds.Remove(elementId);
     ElementIdValues.Remove(elementId.IntegerValue);
     Deletes.Add(elementId);
     CPSettings.DeapplySetting(blocking, new List <ElementId>()
     {
         elementId
     });
 }
예제 #4
0
        internal void ApplyInternal(CryptoTransactionDeleted deleted)
        {
            Deletes.Add(deleted.TransactionId);

            StateUpdateLoop();
        }
 public override void Delete(T entity)
 {
     Deletes.Add(entity.Id);
 }