DeleteTempEvents() public static method

public static DeleteTempEvents ( string tableName ) : void
tableName string
return void
Example #1
0
    //recuperate temp jumpRj or RunI if chronojump hangs
    private string recuperateBrokenEvents()
    {
        string returnString = "";

        string tableName      = "tempJumpRj";
        int    existsTempData = Sqlite.TempDataExists(tableName);

        if (existsTempData > 0)
        {
            JumpRj myJumpRj = SqliteJumpRj.SelectJumpData("tempJumpRj", existsTempData, false);
            try {
                myJumpRj.InsertAtDB(true, Constants.JumpRjTable);
            } catch {}             //pitty, cannot insert

            Sqlite.DeleteTempEvents(tableName);
            returnString = "Recuperated last Reactive Jump";
        }

        tableName      = "tempRunInterval";
        existsTempData = Sqlite.TempDataExists(tableName);
        if (existsTempData > 0)
        {
            RunInterval myRun = SqliteRunInterval.SelectRunData("tempRunInterval", existsTempData, false);
            try {
                myRun.InsertAtDB(true, Constants.RunIntervalTable);
            } catch {}             //pitty, cannot insert

            Sqlite.DeleteTempEvents(tableName);
            returnString = "Recuperated last Intervallic Run";
        }

        return(returnString);
    }