Click here to Skip to main content
15,860,859 members
Articles / Programming Languages / C#

modds Drag and Drop Programming for C# Sample Program (Part 1)

Rate me:
Please Sign up or sign in to vote.
5.00/5 (3 votes)
4 Jul 2016CPOL3 min read 23.5K   4   10
Drag and drop programming

Introduction

YouTube

Modds is drag and drop programming language. Modds C# is a drag-and-drop application development environment based in C#. In this environment, any and all existing compiled .NET code can be used as building blocks to develop new applications. Unlike the command base of decision logic programming languages, modds is data-driven. Input data flows like water through the program’s structure, and in the process is converted to output data.

modds Designer (C#) will automatically wrap functions or objects from existing .NET DLL. The wrapper then also becomes known as an object element in the modds interface. One object element can only communicate with other object elements through data-driven Connectors. Each Connector coming out of one object element is linked to another wrapped object, or a function’s input/output parameters. When the receiving end of a triggering Connector receives its necessary data, it will trigger the execution of the wrapped object or function at its end. The element’s output will then trigger other elements to execute. This cascading effect allows each element to operate as soon as its necessary data becomes available, and will continue until it reaches the end of the program’s structure.

In this article, I will walk through a command line “Hello World” program:

Image 1

Running modds C#

In order to run modds C#, you need Microsoft Windows 7 or above, and .NET Framework 4.5.2 or above installed.

First, download modds C# at www.modds.org.

Creating a "Hello World" Project

Creating a “Hello World” Project

Start modds C# and click File->New Project.

From New Project dialog:

  1. Select Console Application
  2. Given Project the name “Hello World
  3. Browse Project Path
  4. Press OK

Executing the Program

In the solution panel, right-click “Hello World” and select Execute.

Image 2

Program Walkthrough

In the solution panel, expand Schema and double click “Main.xaml” to open.

Image 3

For more information about each Element, click on Element’s icon to online help.

When the program first executes, “Main.xaml” will load and be used to build a modds object. Each Element above will become object Element of the main object. After the object is built, the program will look for the Start Trigger Element and trigger it. The trigger order will follow the trigger index number on Start Trigger Element.

Start Trigger 0 will trigger the Hello World Element to send out “Hello World!!”. The string message will trigger Function WriteLine and print out “Hello World!!”.

Start Trigger 1 will trigger Function ReadLine and the “Hello World!!” window will not close until the user presses a key.

The Element Control

You can find the Start Trigger Element by dragging it out from:

  • Control Toolbox ->modds Common Control ->Start Trigger

The Primitive Type Element HelloWorld is dragged out from:

  • .NET DLL Toolbox ->CSharpCommonLibrary ->Primitive Type ->String (or open Microsoft mscorlib.dll)

Function WriteLine and ReadLine are dragged out from “mscorlib.dll”. The following steps show how to find these methods:

  1. On the .NET DLL Toolbox panel, click the Add DLL button (top-left corner of the panel).
  2. In the File Open dialog, select “mscorlib.dll” and click Open.
  3. Expand Common Language Runtime Library ->Class ->Console
  4. In the “Hello World” project, we are using functions ReadLine() and WriteLine(String).

Project EXE File

The project EXE program file shows up under your project directory.

Hello World ->Build ->Release ->Hello World.exe

modds Drag and Drop Programming for C# Sample Stock Chart (Part 2)

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
Questionwww.modds.org Pin
Member 1511067214-May-21 3:31
Member 1511067214-May-21 3:31 
QuestionNot able to run Pin
LanLa4-Aug-16 1:54
professionalLanLa4-Aug-16 1:54 
AnswerRe: Not able to run Pin
douglas young4-Aug-16 2:12
douglas young4-Aug-16 2:12 
QuestionRe: Not able to run Pin
LanLa4-Aug-16 3:33
professionalLanLa4-Aug-16 3:33 
AnswerRe: Not able to run Pin
douglas young4-Aug-16 3:38
douglas young4-Aug-16 3:38 
GeneralRe: Not able to run Pin
LanLa4-Aug-16 4:04
professionalLanLa4-Aug-16 4:04 
GeneralRe: Not able to run Pin
douglas young4-Aug-16 4:11
douglas young4-Aug-16 4:11 
PraiseRe: Not able to run Pin
LanLa4-Aug-16 4:28
professionalLanLa4-Aug-16 4:28 
GeneralRe: Not able to run Pin
douglas young4-Aug-16 4:31
douglas young4-Aug-16 4:31 
QuestionPretty cool Pin
Sacha Barber1-Aug-16 21:18
Sacha Barber1-Aug-16 21:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.