ChronopicRegisterPortList.Add C# (CSharp) Method

Add() public method

public Add ( ChronopicRegisterPort, crp ) : void
crp ChronopicRegisterPort,
return void
    public void Add(ChronopicRegisterPort crp)
    {
        //Add to SQL
        SqliteChronopicRegister.Insert(false, crp);

        //Add to list
        L.Add(crp);
    }

Usage Example

Esempio n. 1
0
    protected void registerAddOrUpdate(ChronopicRegisterPort crp)
    {
        if (!crp.FTDI)
        {
            return;
        }

        if (!crpl.Exists(crp))
        {
            crpl.Add(crp);
        }
        else if (crpl.PortChanged(crp))
        {
            crpl.UpdatePort(crp, crp.Port);
        }
    }