Beispiel #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (!_disposed)
     {
         if (disposing) // dispose of managed resources
         {
             Tracer.WriteTraceMethodLine();
             PageSettingsDataSource.Save(PageSettings);
             PageSettings = null;
             PageTemplate = null;
         }
         _disposed = true;
     }
 }
Beispiel #2
0
 /// <summary>
 /// Provides a one-way binding between the page settings data model
 /// (source) and page template presentation logic (target).
 /// </summary>
 internal Binder(OneNote.IApplication application)
 {
     PageSettings = PageSettingsDataSource.Load();
     BindTemplate(application);
 }