Ejemplo n.º 1
0
        private void button4_Click(object sender, EventArgs e)
        {
            listView1.Columns.Clear();
            listView1.Items.Clear();
            listView1.View          = View.Details;
            listView1.FullRowSelect = true;
            listView1.MultiSelect   = true;

            foreach (string s in qsofields)
            {
                if (s.Length > 0)
                {
                    listView1.Columns.Add(s);
                }
            }


            HRDInterface.callsign = textBox2.Text;
            HRDInterface.u        = textBox3.Text;
            HRDInterface.p        = textBox4.Text;
            HRDInterface.s        = textBox5.Text;

            System.Collections.ArrayList q = HRDInterface.test();


            for (int x = 0; x < q.Count; x++)
            {
                try
                {
                    QSOData d = (QSOData)q[x];


                    ListViewItem li = new ListViewItem();
                    li.Text = d.callsign;
                    li.SubItems.Add(d.name);
                    li.SubItems.Add(d.date);
                    li.SubItems.Add(d.date);
                    li.SubItems.Add(d.sent);
                    li.SubItems.Add(d.rcvd);
                    li.SubItems.Add(d.mode);
                    li.SubItems.Add(d.qth);
                    li.SubItems.Add(d.band);
                    li.SubItems.Add(d.freq);
                    li.SubItems.Add("");        //skcc
                    li.SubItems.Add("");        //TXPWR
                    li.SubItems.Add(d.comment); //TXPWR

                    if (d.QSL_SENT.Equals("Y"))
                    {
                        li.BackColor = Color.OrangeRed;
                    }

                    listView1.Items.Add(li);
                }
                catch (Exception ex)
                {
                    System.Console.WriteLine(ex.Message);
                }
            }
        }
Ejemplo n.º 2
0
 private void button4_Click(object sender, EventArgs e)
 {
     HRDInterface.test();
 }