public Reference1C77(OLEConnection Connection, string RefName) { Reference = Connection.Global.CreateObject("—правочник." + RefName); Reference.Method("¬ыбратьЁлементы"); FCurrentRecord = -1; RecRef = new List <RecordReference1C77>(); while (Reference.Method("ѕолучитьЁлемент").ToBool()) { FCurrentRecord++; doCreateRecord(); doCopyRecord(); RecRef.Add(RecRefType); } if (FCurrentRecord >= 0) { FCurrentRecord = 0; } }
public OLE(OLEConnection Connection, object Handle) { this.Connection = Connection; this.Handle = Handle; }