ZennoLab Assemblies Documentation
IZennoPosterProjectModel Interface
Members  Example  See Also  Send Feedback
ZennoLab.InterfacesLibrary Assembly > ZennoLab.InterfacesLibrary.ProjectModel Namespace : IZennoPosterProjectModel Interface

Glossary Item Box

Represents a model of current project. Performs access to global variables, local variables, tables, profile, lists. Contains methods for sending messages of warnings and errors to program's log.

Syntax

C# 
public interface IZennoPosterProjectModel 

Remarks

The object of the IZennoPosterModel interface get access to major data of ZennoPoster's project.

Example

The following example demonstrates using IZennoPosterModel interface. In this example local variable project is object of IZennoPosterModel interface. Variable "project" has access to data of current project.
C#Copy Code
// get global variable by name "MyGlobalVariable" from namespace "MyNamespace"
IGlobalVariable gv = project.GlobalVariables["MyNamespace", "MyGlobalVariable"];
 
// get local varible by name "MyLocalVariable" 
ILocalVariable lv = project.Variables["MyLocalVariable"];
 
// get list by name "MyList"
ILists list = project.Lists["MyList"];
 
// get table by name "MyTable"
ITables table = project.Tables["MyTable"];
 
// set new login to profile
project.Profile.Login = "NewLogin1234";
 
// get nick from profile
string nick = project.Profile.NickName;
PHPCopy Code
// get global variable by name "MyGlobalVariable" from namespace "MyNamespace"
$gv = $project->GlobalVariables->get_Item("MyNamespace", "MyGlobalVariable");
 
// get local varible by name "MyLocalVariable" 
$lv = $project->Variables->get_Item("MyLocalVariable");
 
// get list by name "MyList"
$list = $project->Lists->get_Item("MyList");
 
// get table by name "MyTable"
$table = $project->Tables->get_Item("MyTable");
 
// set new login to profile
$project->Profile->Login = "NewLogin1234";
 
// get nick from profile
$nick = $project->Profile->NickName;

Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven

See Also

© 2013 All Rights Reserved.