Exemple #1
0
 /// <summary>
 /// Insert the chunk into the asset.
 /// </summary>
 public override void Do()
 {
     if (m_boolTime == true)
     {
         m_Asset.InsertAsset(m_AssetChunk, m_dInsertionTime);
     }
     else
     {
         m_Asset.InsertAsset(m_AssetChunk, m_lInsertionPosition);
     }
 }
Exemple #2
0
 /// <summary>
 /// Get the deleted data back into the asset.
 /// </summary>
 public override void Undo()
 {
     if (m_boolTime == true)
     {
         m_Asset.InsertAsset(m_NewAsset, m_dBeginTime);
     }
     else
     {
         m_Asset.InsertAsset(m_NewAsset, m_lBeginPosition);
     }
 }