Esempio n. 1
0
    static public Tracker New(string name, int user, int filter)
    {
        string g = Guid.NewGuid().ToString();

        SQLExecute($"INSERT INTO {_Tabl} ({_Nam}, {_Own}, {_Flt}) VALUES ('{g}', {user}, {filter})");
        int     id = Convert.ToInt32(GetValue($"SELECT {_pid} FROM {_Tabl} WHERE {_Nam} = '{g}'"));
        Tracker tr = new Tracker(id)
        {
            NAME = name
        };

        tr.Store();
        SimpleTrackWrapper.ResetSimpleTrackers();
        return(tr);
    }
Esempio n. 2
0
 static public void Delete(int id)
 {
     SQLExecute(string.Format("DELETE FROM {0} WHERE {1} = {2}", _Tabl, _pid, id));
     SimpleTrackWrapper.ResetSimpleTrackers();
 }
Esempio n. 3
0
 protected override void PostStore()
 {
     SimpleTrackWrapper.ResetSimpleTrackers();
 }