Beispiel #1
0
 public void persist()
 {
     PersistenceUnitThread.persistenceUnit.addToPersistenceBuffer(PersistenceUnit.createPersistenceContainer(this.name + this.GetType().Name,
                                                                                                             this.GetType().Name,
                                                                                                             new String[][] {
         new String[] { "interval", interval.ToString() },
         new String[] { "lifetime", lifetime.ToString() },
         new String[] { "name", this.name },
         new String[] { "keys", getStringFromKeys() }
     }));
 }
Beispiel #2
0
 public void Persist()
 {
     PersistenceUnitThread.persistenceUnit.addToPersistenceBuffer(PersistenceUnit.createPersistenceContainer(Name + GetType().Name,
                                                                                                             GetType().Name,
                                                                                                             new[]
     {
         new[] { "interval", Interval.ToString() },
         new[] { "lifetime", Lifetime.ToString() },
         new[] { "name", Name },
         new[] { "keys", GetStringFromKeys() }
     }));
 }
 public void persitCurrentWindow()
 {
     if (shouldSave)
     {
         PersistenceUnitThread.persistenceUnit.addToPersistenceBuffer(PersistenceUnit.createPersistenceContainer(this.subWindowTitle.Content.ToString() + this.GetType().Name,
                                                                                                                 this.GetType().Name,
                                                                                                                 new String[][] {
             new String[] { "height", this.Height.ToString() },
             new String[] { "width", this.Width.ToString() },
             new String[] { "xOffset", anchorPoint.X.ToString() },
             new String[] { "yOffset", anchorPoint.Y.ToString() }
         }));
     }
 }