public bool GetEBIndexTable(ref EBIndexTable oldTable) { try { List <EBIndex> listEbIndex = GetSendEBMIndex(); oldTable.ListEbIndex = listEbIndex; oldTable.Repeat_times = pnlRepeatTimes.GetRepeatTimes(); return(true); } catch { return(false); } }
public bool GetEBIndexTable(ref EBIndexTable oldTable) { try { //if (oldTable == null) //{ // oldTable = new EBIndexTable(); // oldTable.Table_id = 0xfd; // oldTable.Table_id_extension = 0; //} List <EBIndex> listEbIndex = GetSendEBMIndex(); oldTable.ListEbIndex = listEbIndex; //if (listEbIndex == null || listEbIndex.Count == 0) //{ // oldTable.ListEbIndex = null; //} oldTable.Repeat_times = pnlRepeatTimes.GetRepeatTimes(); return(true); } catch { return(false); } }