C# Class Artemis.ViewModels.Profiles.ProfileViewModel

Inheritance: Caliburn.Micro.PropertyChangedBase
Exibir arquivo Open project: SpoinkyNL/Artemis Class Usage Examples

Public Methods

Method Description
Activate ( ) : void
Deactivate ( ) : void
GetRenderLayers ( ) : List
MouseDownKeyboardPreview ( System.Windows.Input.MouseButtonEventArgs e ) : void

Handler for clicking

MouseMoveKeyboardPreview ( System.Windows.Input.MouseEventArgs e ) : void

Handler for resizing and moving the currently selected layer

MouseUpKeyboardPreview ( System.Windows.Input.MouseButtonEventArgs e ) : void

Second handler for clicking, selects a the layer the user clicked on if the used clicked on an empty spot, deselects the current layer

ProfileViewModel ( DeviceManager deviceManager ) : System

Private Methods

Method Description
DeviceManagerOnOnKeyboardChangedEvent ( object sender, KeyboardChangedEventArgs e ) : void
GetLayers ( ) : List
HandleDragging ( System.Windows.Input.MouseEventArgs e, double x, double y, LayerModel hoverLayer ) : void

Handles dragging the given layer

InvokeUpdateKeyboardPreview ( object sender, System.Timers.ElapsedEventArgs e ) : void

Method Details

Activate() public method

public Activate ( ) : void
return void

Deactivate() public method

public Deactivate ( ) : void
return void

GetRenderLayers() public method

public GetRenderLayers ( ) : List
return List

MouseDownKeyboardPreview() public method

Handler for clicking
public MouseDownKeyboardPreview ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
return void

MouseMoveKeyboardPreview() public method

Handler for resizing and moving the currently selected layer
public MouseMoveKeyboardPreview ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs
return void

MouseUpKeyboardPreview() public method

Second handler for clicking, selects a the layer the user clicked on if the used clicked on an empty spot, deselects the current layer
public MouseUpKeyboardPreview ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
return void

ProfileViewModel() public method

public ProfileViewModel ( DeviceManager deviceManager ) : System
deviceManager Artemis.Managers.DeviceManager
return System