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