Ejemplo n.º 1
0
        // make a TableData object from a SADataReader record
#if !NO_ASA
        static void MakeDataRec(SADataReader myDataReader, out TableData data)
        {
            data = new TableData(
                myDataReader["DeviceName"].ToString()
                , MainClass.ToDate(TableName, myDataReader["PurgeDate"])
                , MainClass.ToInt(TableName, myDataReader["SystemType"]));
        }
Ejemplo n.º 2
0
        // make a TableData object from a SADataReader record
#if !NO_ASA
        static void MakeDataRec(SADataReader myDataReader, out TableData data)
        {
            data = new TableData(
                MainClass.ToInt(TableName, myDataReader["EventIid"])
                , myDataReader["DeviceName"].ToString()
                , MainClass.ToInt(TableName, myDataReader["ShutdownType"])
                , MainClass.ToDate(TableName, myDataReader["StationStopTime"])
                , MainClass.ToDate(TableName, myDataReader["StationStartTime"])
                , myDataReader["EventMsg"].ToString());
        }