public bool SetOutOperDateRealIni(COPSDate date) { trace.Write(TraceLevel.Debug, "CDatM1::SetOutOperDateRealIni"); bool fnResult = true; try { if (date == null) { throw new ArgumentNullException(nameof(date), "Parameter NULL"); } if (!date.IsValid()) { throw new ArgumentOutOfRangeException(nameof(date), "Not a valid Date"); } m_dtOutOperDateRealIni = date.Copy(); } catch (Exception error) { trace.Write(TraceLevel.Error, error.ToLogString()); fnResult = false; } return(fnResult); }
public bool SetDate(COPSDate pDate) { bool result = true; trace.Write(TraceLevel.Debug, "CDatM::SetDate"); try { m_dtHdDate = pDate.Copy() ?? throw new ArgumentNullException(nameof(pDate), "Parameter NULL"); } catch (Exception error) { trace.Write(TraceLevel.Error, error.ToLogString()); result = false; } return(result); }
public void SetLastDate(COPSDate pdt) { m_dtLast = pdt.Copy(); }
public void SetOutMinOperDate(COPSDate pdtOperDate) { m_dtOutMinOperDate = pdtOperDate.Copy(); }
public void SetOutOperDateEnd(COPSDate dtOper) { m_dtOutOperDateEnd = dtOper.Copy(); }