ZennoLab Assemblies Documentation
IZennoCustomEndCode Interface
Members  Example 
Defines methods that allow use the GoodEnd and BadEnd methods via code.
Object Model
IZennoCustomEndCode Interface
Syntax
public interface IZennoCustomEndCode 
Example
The following example demonstrates the implementation of IZennoCustomEndCode
using System;
using ZennoLab.CommandCenter;
 
namespace ZennoCustomCode
{
    public class Program : IZennoCustomCode, IZennoCustomEndCode
    {
        // good end method
        public void GoodEnd(Instance instance, IZennoPosterProjectModel project)
        {
        }
 
        // bad end method
        public void BadEnd(Instance instance, IZennoPosterProjectModel project)
        {
        }
        
        // The main method
        public int ExecuteCode(Instance instance, IZennoPosterProjectModel project)
        {
            int executionResult = 0;
 
            return executionResult;
        }
    }
}
<?php
use System;
use ZennoLab\CommandCenter;
 
[Export]
class Program implements ZennoLab\CommandCenter\IZennoCustomCode, ZennoLab\CommandCenter\IZennoCustomEndCode
{
    // good end method
    public function GoodEnd($instance, $project)
    {
    }
 
    // bad end method
    public function BadEnd($instance, $project)
    {
    }
        
    // The main method
    public function ExecuteCode($instance, $project)
    {
        int executionResult = 0;
 
        return executionResult;
    }
}
?>
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

IZennoCustomEndCode Members
ZennoLab.CommandCenter Namespace
IZennoCustomCode Interface
IZennoPosterProjectModel Interface
Instance Class

Send Feedback