C# Class RoomEditorApp.App

Inheritance: IExternalApplication
Show file Open project: jeremytammik/RoomEditorApp

Public Methods

Method Description
OnShutdown ( UIControlledApplication a ) : Result
OnStartup ( UIControlledApplication a ) : Result
ToggleSubscription2 ( IExternalEventHandler handler ) : bool

Toggle on and off subscription to automatic cloud updates. Return true when subscribed.

Private Methods

Method Description
AddRibbonPanel ( UIControlledApplication a ) : void

Create a custom ribbon panel and populate it with our commands, saving the resulting ribbon items for later access.

GetBitmapImage ( Assembly a, string path ) : BitmapImage

Load a new icon bitmap from embedded resources. For the BitmapImage, make sure you reference WindowsBase and PresentationCore, and import the System.Windows.Media.Imaging namespace.

IconResourcePath ( string name, string size ) : string

Return path to embedded resource icon

Method Details

OnShutdown() public method

public OnShutdown ( UIControlledApplication a ) : Result
a UIControlledApplication
return Result

OnStartup() public method

public OnStartup ( UIControlledApplication a ) : Result
a UIControlledApplication
return Result

ToggleSubscription2() public static method

Toggle on and off subscription to automatic cloud updates. Return true when subscribed.
public static ToggleSubscription2 ( IExternalEventHandler handler ) : bool
handler IExternalEventHandler
return bool