Getting Started


Korduene supports extension which enables you to extend Korduene's functionality, which also enables you to create your own custom nodes. Korduene supports extension which enables you to extend Korduene's functionality, the provided SDK "Korduene.dll" allows you to change the way Korduene works, to a point where you can use it for any purpose. That includes creating projects of any type that compiles your code in any language for any platform. The way this works, is Korduene provides you with base classes for creating projects, editors, nodes, compilers etc.. That way you will be in full control on how your project works, how your code is generated and compiled. It all might sound a bit compilcated, but it's not as compilcated as you might think, a bit work and time will be required to achieve what you're trying to do, but at the end you will end up with a custom IDE that does exactly what you want it to do.

Requirements
• Windows operating system.
• Latest .NET Framework.
• An IDE like Visual Studio (Any edition will do).
Creating New Extension
• Open Visual Studio and create a new class library.
• In Solution Explorer (on the right) navigate to References, right click and click Add Reference.
• Click Browse and navigate to SDK folder in Korduene installation directory.
• Select Korduene.dll and click Add then click OK.


Creating Extension Class
• Create a new class if it hasn't been created already.
• Name the class anything you want and make sure your class inherits Korduene.IExtension
• Implement IExtension interface.
• Fill out all the required properties.
Extension Sample Code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Korduene;
using Korduene.KGraph;
using System.Windows.Forms;
using System.ComponentModel;
namespace EmptyExtension
{
    public class MyExtension : IExtension
    {
        //Extension Author
        public string Author { get { return "Rebin"; } }
        //Extension Menu
        public ToolStripMenuItem ExtensionMenu { get { return extensionMenu; } }
        //Name of extension
        public string Name { get { return "EmptyExtension"; } }
        //Extension version
        public Version Version { get { return new Version(1, 0); } }
        // Available version
        public Version AvailableVersion { get { return new Version(1, 0); } }
        //Extension website
        public string Website { get { return "www.korduene.com"; } }
        //Korduene version that this extension is compatible with.
        public Version KordueneVersion { get { return new Version(0, 1); } }
        //Extension author email
        public string Email { get { return "contact@korduene.com"; } }
        //Extension description
        public string Description { get { return "This an empty extension."; } }
        //Extension nodes namespace.
        public bool IncludeNodes { get { return true; } }
        //Extension license
        public string License { get { return "Free"; } }
        //Support link
        public string SupportLink { get { return "forum.korduene.com"; } }
        //Extension image 16x16
        public System.Drawing.Image Image { get { return null; } }
        ToolStripMenuItem extensionMenu = null;
        public MyExtension()
        {
            extensionMenu = new System.Windows.Forms.ToolStripMenuItem("EmptyExtension");
            extensionMenu.Click += extensionMenu_Click;
        }
        void extensionMenu_Click(object sender, EventArgs e)
        {
            MessageBox.Show("This is an empty extension and only used for demonstration.", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
    }
}
            
Using Your Extension
• Build your extension.
• Copy your extension file to Extensions folder in Korduene's installation directory and restart Korduene.
• That's it you can now use your extension.