Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #8294

Re: Translate code from C# to Vulcab

From "Willie Moore" <williem@wmconsulting.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Translate code from C# to Vulcab
Date 2015-07-22 08:22 -0500
Organization Aioe.org NNTP Server
Message-ID <moo5f1$7dv$1@speranza.aioe.org> (permalink)
References <67cffd0c-151a-457b-b01b-b1f5d7ceee66@googlegroups.com>

Show all headers | View raw


Gary,

Here are 2 simple samples. The first one has a business layer seperated into 
its own dll and shows how to call it from winforms and wpf. The second link 
is just a winforms sample that has everything in one file. I hope that these 
will be useful.

https://dl.dropboxusercontent.com/u/26130378/VulcanEvents.zip
https://dl.dropboxusercontent.com/u/26130378/VulcanProgressBarWithEvents.zip


Regards,
Willie
Vulcan VIP
Grafx Development Team

"Gary"  wrote in message 
news:67cffd0c-151a-457b-b01b-b1f5d7ceee66@googlegroups.com...

I have some C# code I am having a difficult time translating to Vulcan.Net

// Inside a class (spManager - serial port manager)
public event EventHandler<SerialDataEventArgs> NewSerialDataRecieved;

// Inside an event handler:
NewSerialDataRecieved(this, new SerialDataEventArgs(data))


// An additional class
public class SerialDataEventArgs : EventArgs
{
    public SerialDataEventArgs(byte[] dataInByteArray)
    {
        Data = dataInByteArray;
    }
}


// Instantiate spManager class
mySPManager = new SPManager();

mySPManager.NewSerialDataRecieved += new 
EventHandler<SerialDataEventArgs>(mySPManagerNewSerialDataRecieved);

// Process data received from the com port
PRIVATE METHOD mySerialPortDataReceived( sender AS System.Object, e AS 
SerialDataReceivedEventArgs ) AS System.Void

I am having a difficult time understanding and translating the 
<SerialDataEventArgs> when the event is defined and when the event handler 
is assigned.  Do I need to use a delegate?

Any help would be greatly appreciated.
Thanks 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Translate code from C# to Vulcab Gary <gkeefe109@gmail.com> - 2015-07-10 06:52 -0700
  Re: Translate code from C# to Vulcab D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2015-07-13 12:53 +0200
  Re: Translate code from C# to Vulcab "Willie Moore" <williem@wmconsulting.com> - 2015-07-14 15:36 -0500
  Re: Translate code from C# to Vulcab "Willie Moore" <williem@wmconsulting.com> - 2015-07-15 11:35 -0500
    Re: Translate code from C# to Vulcab Gary <gkeefe109@gmail.com> - 2015-07-18 07:30 -0700
  Re: Translate code from C# to Vulcab "Willie Moore" <williem@wmconsulting.com> - 2015-07-22 08:22 -0500
    Re: Translate code from C# to Vulcab Gary <gkeefe109@gmail.com> - 2015-07-23 19:21 -0700

csiph-web