public void Add(RecordingSession X) { List.Add(X); }
internal OCL.RecordingSession GetSession(int ID) { try { RecordingSession X = null; string sSQL = "SELECT * FROM tblSession WHERE ID = " + ID.ToString(); DataSet DS = RF.GetDataSet(sSQL); if(DS.Tables[0].Rows.Count > 0) { X = new RecordingSession(); DataRow r = DS.Tables[0].Rows[0]; X.mvarID = Convert.ToInt32((object)r[0]); X.mvarDescription = Convert.ToString((object)r[1]); X.mvarCreatedDate = Convert.ToDateTime((object)r[2]); X.mvarIsPresentation = Convert.ToBoolean((object)r[3]); X.IsMarkedForDeletion = Convert.ToBoolean((object)r[4]); X.mvarOwnerID = Convert.ToInt32((object)r[5]); /// Protect this entry since it has not yet been implemented in Oyster Disc try { X.mvarIsOysterSession = Convert.ToBoolean((object)r[7]); } catch(Exception Err) { string peekError = Err.Message; } } return X; } catch(Exception Err) { throw new ApplicationException(Err.Message); } }