Table of Contents

Class EditorForm

Namespace
Bonsai.Editor
Assembly
Bonsai.Editor.dll
public class EditorForm : Form, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
Inheritance
EditorForm
Implements
Inherited Members

Constructors

EditorForm(IObservable<IGrouping<string, WorkflowElementDescriptor>>, IObservable<TypeVisualizerDescriptor>)

public EditorForm(IObservable<IGrouping<string, WorkflowElementDescriptor>> elementProvider, IObservable<TypeVisualizerDescriptor> visualizerProvider)

Parameters

elementProvider IObservable<IGrouping<string, WorkflowElementDescriptor>>
visualizerProvider IObservable<TypeVisualizerDescriptor>

EditorForm(IObservable<IGrouping<string, WorkflowElementDescriptor>>, IObservable<TypeVisualizerDescriptor>, IServiceProvider)

public EditorForm(IObservable<IGrouping<string, WorkflowElementDescriptor>> elementProvider, IObservable<TypeVisualizerDescriptor> visualizerProvider, IServiceProvider provider)

Parameters

elementProvider IObservable<IGrouping<string, WorkflowElementDescriptor>>
visualizerProvider IObservable<TypeVisualizerDescriptor>
provider IServiceProvider

EditorForm(IObservable<IGrouping<string, WorkflowElementDescriptor>>, IObservable<TypeVisualizerDescriptor>, IServiceProvider, float)

public EditorForm(IObservable<IGrouping<string, WorkflowElementDescriptor>> elementProvider, IObservable<TypeVisualizerDescriptor> visualizerProvider, IServiceProvider provider, float editorScale)

Parameters

elementProvider IObservable<IGrouping<string, WorkflowElementDescriptor>>
visualizerProvider IObservable<TypeVisualizerDescriptor>
provider IServiceProvider
editorScale float

Properties

EditorResult

public EditorResult EditorResult { get; set; }

Property Value

EditorResult

FileName

public string FileName { get; set; }

Property Value

string

LoadAction

public LoadAction LoadAction { get; set; }

Property Value

LoadAction

PropertyAssignments

public IDictionary<string, string> PropertyAssignments { get; }

Property Value

IDictionary<string, string>

UpdatesAvailable

public bool UpdatesAvailable { get; set; }

Property Value

bool

Methods

Dispose(bool)

Clean up any resources being used.

protected override void Dispose(bool disposing)

Parameters

disposing bool

true if managed resources should be disposed; otherwise, false.

OnDeactivate(EventArgs)

Raises the Deactivate event.

protected override void OnDeactivate(EventArgs e)

Parameters

e EventArgs

The EventArgs that contains the event data.

OnFormClosed(FormClosedEventArgs)

Raises the FormClosed event.

protected override void OnFormClosed(FormClosedEventArgs e)

Parameters

e FormClosedEventArgs

A FormClosedEventArgs that contains the event data.

OnFormClosing(FormClosingEventArgs)

Raises the FormClosing event.

protected override void OnFormClosing(FormClosingEventArgs e)

Parameters

e FormClosingEventArgs

A FormClosingEventArgs that contains the event data.

OnLoad(EventArgs)

Raises the Load event.

protected override void OnLoad(EventArgs e)

Parameters

e EventArgs

An EventArgs that contains the event data.

ProcessDialogChar(char)

Processes a dialog character.

protected override bool ProcessDialogChar(char charCode)

Parameters

charCode char

The character to process.

Returns

bool

true if the character was processed by the control; otherwise, false.

ScaleControl(SizeF, BoundsSpecified)

Scales the location, size, padding, and margin of a control.

protected override void ScaleControl(SizeF factor, BoundsSpecified specified)

Parameters

factor SizeF

The factor by which the height and width of the control are scaled.

specified BoundsSpecified

A BoundsSpecified value that specifies the bounds of the control to use when defining its size and position.