Write the numbered Cabrillo lines a .udc file asks for
CabrilloFormat 2, 3, 4 and 5 name the NAQP, NA Sprint, Sweepstakes and section-and-serial lines. A file asking for one of those got the default line; it now gets the layout, ported from CabrilloString2 and CabrilloString4 in N1MM's Contact.cs, in N1MM's columns. The exchange the layouts split into columns is built from the boxes the file defines, in the order it defines them. N1MM builds it from the section box alone, which writes only half of a two-box exchange such as NAQP's name and state. Format 6, the ARRL RTTY Roundup line, is still not read. No published .udc file asks for it, because the Roundup has a contest class of its own. ExchangeSlots.ValueOf moves to Nonemm.Contests as QsoExchange.ValueOf, so the contest code can read a contact through its exchange boxes without a second copy of that switch. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RoGtneMQaz4M9w7Kk49AVD
This commit is contained in:
@@ -361,7 +361,7 @@ public sealed class OperatingPosition
|
||||
Entry.Call = qso.Call.Text;
|
||||
for (int at = 0; at < Entry.Exchange.Count; at++)
|
||||
{
|
||||
Entry[at + 1] = ExchangeSlots.ValueOf(qso, Entry.Exchange[at].Slot);
|
||||
Entry[at + 1] = QsoExchange.ValueOf(qso, Entry.Exchange[at].Slot);
|
||||
}
|
||||
OtherName = Entry.Exchange.Any(f => f.Slot == ExchangeSlot.Name) ? "" : qso.Name;
|
||||
Comment = qso.Comment;
|
||||
|
||||
Reference in New Issue
Block a user