Esempio n. 1
0
 public EditorPane(VsRepositoryPackagePackage package)
     : base(null)
 {
     _package = package;
     FileExtensionUsed = GetFileExtension();
     _commandSetGuid = GetCommandSetGuid();
     UIControl = new RepositoryControl();
     base.Content = UIControl;
     UIControl.ViewModel.ContentChanged += (s, e) => OnContentChanged();
 }
Esempio n. 2
0
 protected override void Dispose(bool disposing)
 {
     try
     {
         if (disposing)
         {
             if (UIControl != null)
             {
                 UIControl.Dispose();
                 UIControl = null;
             }
             GC.SuppressFinalize(this);
         }
     }
     finally
     {
         base.Dispose(disposing);
     }
 }