C# Класс Microsoft.Common.Core.Test.Fakes.Shell.TestCoreShell

Наследование: ICoreShell, IMainThread
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DispatchOnUIThread ( System.Action action ) : void
Post ( System.Action action, CancellationToken cancellationToken ) : void
SaveFileIfDirty ( string fullPath ) : string
ShowContextMenu ( CommandID commandId, int x, int y, object commandTaget = null ) : void
ShowErrorMessage ( string message ) : void
ShowMessage ( string message, MessageButtons buttons, MessageType messageType = MessageType.Information ) : MessageButtons
TestCoreShell ( System.ComponentModel.Composition.Hosting.CompositionContainer container ) : System
UpdateCommandStatus ( bool immediate ) : void

Описание методов

DispatchOnUIThread() публичный Метод

public DispatchOnUIThread ( System.Action action ) : void
action System.Action
Результат void

Post() публичный Метод

public Post ( System.Action action, CancellationToken cancellationToken ) : void
action System.Action
cancellationToken System.Threading.CancellationToken
Результат void

SaveFileIfDirty() публичный Метод

public SaveFileIfDirty ( string fullPath ) : string
fullPath string
Результат string

ShowContextMenu() публичный Метод

public ShowContextMenu ( CommandID commandId, int x, int y, object commandTaget = null ) : void
commandId System.ComponentModel.Design.CommandID
x int
y int
commandTaget object
Результат void

ShowErrorMessage() публичный Метод

public ShowErrorMessage ( string message ) : void
message string
Результат void

ShowMessage() публичный Метод

public ShowMessage ( string message, MessageButtons buttons, MessageType messageType = MessageType.Information ) : MessageButtons
message string
buttons MessageButtons
messageType MessageType
Результат MessageButtons

TestCoreShell() публичный Метод

public TestCoreShell ( System.ComponentModel.Composition.Hosting.CompositionContainer container ) : System
container System.ComponentModel.Composition.Hosting.CompositionContainer
Результат System

UpdateCommandStatus() публичный Метод

public UpdateCommandStatus ( bool immediate ) : void
immediate bool
Результат void