/// <summary> /// Constructor /// </summary> /// <param name="qsos">DisplayQsos object to add Qsos to</param> public QsoInputDialog(DisplayQsos qsos) { dispQsos = qsos; InitializeComponent(); LoadModes(); this.DataContext = QsoData; }
public void TestAddQsoNoQsos2() { string err = string.Empty; Qso2 qso = new Qso2("<Mode:3>SSB<Band:3>40m<qso_date:8>20130615<time_on:6>124316", aEnums, ref err); QsoWithInclude qwi = new QsoWithInclude(qso); DisplayQsos dQsos = new DisplayQsos(); Assert.IsFalse(dQsos.IsDirty); Assert.IsFalse(dQsos.NeedsSorting); dQsos.AddQso(qwi); Assert.AreEqual(1, dQsos.Count); Assert.IsTrue(dQsos.IsDirty); Assert.IsTrue(dQsos.NeedsSorting); }
/// <summary> /// Constructor /// </summary> public CardPrintDocument(DisplayQsos dQsos) { qsos = dQsos; }