Update() public static method

public static Update ( bool dbconOpened, ChronopicRegisterPort, crp, ChronopicRegisterPort, newType ) : void
dbconOpened bool
crp ChronopicRegisterPort,
newType ChronopicRegisterPort,
return void
Exemplo n.º 1
0
    public void UpdateType(ChronopicRegisterPort crp, ChronopicRegisterPort.Types newType)
    {
        //Update SQL
        SqliteChronopicRegister.Update(false, crp, newType);

        //Update list
        foreach (ChronopicRegisterPort c in L)
        {
            if (c.SerialNumber == crp.SerialNumber)
            {
                c.Type = newType;
                break;
            }
        }
    }
Exemplo n.º 2
0
    private void encoderToggled(object sender, Gtk.ToggledArgs args)
    {
        Gtk.TreeIter iter;
        listStoreAll.GetIter(out iter, new Gtk.TreePath(args.Path));

        ChronopicRegisterWindowTypes crwt = (ChronopicRegisterWindowTypes)listStoreAll.GetValue(iter, 0);

        if (!crwt.Encoder)
        {
            crwt.Unknown  = false;
            crwt.Contacts = false;
            crwt.Encoder  = true;
        }

        //store on SQL
        SqliteChronopicRegister.Update(false,
                                       new ChronopicRegisterPort(crwt.SerialNumber, ChronopicRegisterPort.Types.ENCODER),
                                       ChronopicRegisterPort.Types.ENCODER);
    }
Exemplo n.º 3
0
 private void updateSQL(string serialNumber, ChronopicRegisterPort.Types type)
 {
     //store on SQL
     SqliteChronopicRegister.Update(false, new ChronopicRegisterPort(serialNumber, type), type);
 }