C# 클래스 NuGet.Options.PackageSourcesOptionsControl

Represents the Tools - Options - Package Manager dialog
The code in this class assumes that while the dialog is open, noone is modifying the VSPackageSourceProvider directly. Otherwise, we have a problem with synchronization with the package source provider.
상속: System.Windows.Forms.UserControl
파일 보기 프로젝트 열기: themotleyfool/NuGet 1 사용 예제들

공개 메소드들

메소드 설명
PackageSourcesOptionsControl ( IServiceProvider serviceProvider ) : System
PackageSourcesOptionsControl ( IVsPackageSourceProvider packageSourceProvider, IServiceProvider serviceProvider ) : System

비공개 메소드들

메소드 설명
ApplyChangedSettings ( ) : bool

Persist the package sources, which was add/removed via the Options page, to the VS Settings store. This gets called when users click OK button.

ClearNameSource ( ) : void
ClearSettings ( ) : void

This gets called when users close the Options dialog

CopySelectedItem ( PackageSource selectedPackageSource ) : void
CreateNewPackageSource ( ) : PackageSource
DetermineInitialDirectory ( ) : string
GetCheckBoxRectangleForListBoxItem ( int itemIndex ) : Rectangle
InitializeOnActivated ( ) : void
IsPathRootedSafe ( string path ) : bool
MoveSelectedItem ( int offset ) : void
NewBounds ( Rectangle sourceBounds, int xOffset, int yOffset ) : Rectangle
OnAddButtonClick ( object sender, EventArgs e ) : void
OnBrowseButtonClicked ( object sender, EventArgs e ) : void
OnRemoveButtonClick ( object sender, EventArgs e ) : void
OnSelectedPackageSourceChanged ( object sender, EventArgs e ) : void
OnUpdateButtonClick ( object sender, EventArgs e ) : void
PackageSourcesContextMenu_ItemClicked ( object sender, ToolStripItemClickedEventArgs e ) : void
PackageSourcesListBox_DrawItem ( object sender, DrawItemEventArgs e ) : void
PackageSourcesListBox_KeyUp ( object sender, KeyEventArgs e ) : void
PackageSourcesListBox_MeasureItem ( object sender, System.Windows.Forms.MeasureItemEventArgs e ) : void
PackageSourcesListBox_MouseMove ( object sender, MouseEventArgs e ) : void
PackageSourcesListBox_MouseUp ( object sender, MouseEventArgs e ) : void
SelectAndFocus ( TextBox textBox ) : void
SetupEventHandlers ( ) : void
TogglePackageSourceEnabled ( int itemIndex ) : void
TryUpdateSource ( ) : TryUpdateSourceResults
UpdateUI ( ) : void

메소드 상세

PackageSourcesOptionsControl() 공개 메소드

public PackageSourcesOptionsControl ( IServiceProvider serviceProvider ) : System
serviceProvider IServiceProvider
리턴 System

PackageSourcesOptionsControl() 공개 메소드

public PackageSourcesOptionsControl ( IVsPackageSourceProvider packageSourceProvider, IServiceProvider serviceProvider ) : System
packageSourceProvider IVsPackageSourceProvider
serviceProvider IServiceProvider
리턴 System