Table of Contents

Method LoadCommands

Namespace
vdControls
Assembly
vdFramedControl.dll

LoadCommands()

Load the commands located at the Resources directory.This directory can be set either using the SetResourcesDirectory method of vdSerialize or it is the directory where the VectorDraw assemblies are.

public bool LoadCommands()

Returns

bool

LoadCommands(string, string)

Loads the commands from the specified direcctory and filename.

public bool LoadCommands(string path, string fname)

Parameters

path string

The directory where the commands text file is located.

fname string

The filename of the commands text file.

Returns

bool

True if the commands where succesfully loaded.

LoadCommands(StreamReader)

Load all commands from an existing System.IO.StreamReader stream.

public bool LoadCommands(StreamReader file)

Parameters

file StreamReader

The System.IO.StreamReader stream to load the commands from. This can be a project's resources file that is common to the commands.txt that we provide.

Returns

bool

True if the commands were succesfully loaded.

Examples

This code will Load the commands from a project's resources file.

stream = new MemoryStream();
writer = new StreamWriter(stream);
writer.Write(Resources.Commands);
writer.Flush();
stream.Position = 0;
StreamReader Commands = new StreamReader(stream);
vdFramedControl1.LoadCommands(Commands);