private void cmdDoPrint_Click(object sender, EventArgs e) { List <cQSO> lsPrint = new List <cQSO>(); foreach (var itm in lstStationList.CheckedItems) { cCall c = itm as cCall; if (c == null) { continue; } if (!_dcQSO.ContainsKey(c.Call)) { continue; } foreach (cQSO q in _dcQSO[c.Call]) { lsPrint.Add(q); } } frmPrintCards fp = new frmPrintCards(lsPrint, _MainForm); fp.ShowDialog(); Close(); }
private void mnuFilePrintCard_Click(object sender, EventArgs e) { List <cQSO> lsPrint = new List <cQSO>(); foreach (cQSO q in _blQSOs) { if (!q.Card_Send && q.QSLMethod != (int)cQSO.enQSLMethod.N && q.QSLMethod != (int)cQSO.enQSLMethod.R) { lsPrint.Add(q); } } frmPrintCards fp = new frmPrintCards(lsPrint, _dcMode); fp.ShowDialog(); }
private void cmsGrid_Print_Click(object sender, EventArgs e) { if (dgvMain.SelectedRows == null) { return; } if (dgvMain.SelectedRows.Count == 0) { return; } cQSO qso = dgvMain.SelectedRows[0].DataBoundItem as cQSO; if (qso == null) { return; } frmPrintCards fp = new frmPrintCards(new List <cQSO>() { qso }, _dcMode); fp.ShowDialog(); }