public void SetNew(eVouchersScanType type, string siteCode, int startFrom, string comment) { m_VoucherScanType = type; m_SiteCodeString = siteCode; BatchID = Guid.NewGuid(); Interlocked.Exchange(ref m_VoucherStartNumber, startFrom); Comment = comment; }
public CurrentScanObj(eVouchersScanType type, string siteCode, int startFrom) { m_VoucherScanType = type; m_SiteCodeString = siteCode; Interlocked.Exchange(ref m_VoucherStartNumber, startFrom); }