Пример #1
0
        private void Recalculate()
        {
            var wspr = new WsprSharp.WsprTransmission(tbCallsign.Text, tbLocation.Text, double.Parse(cbPower.Text));

            if (wspr.IsValid == false)
            {
                tbMessage.Text = "invalid input";
                rtbLevels.Text = "invalid input";
                return;
            }

            tbMessage.Text    = wspr.GetMessageString();
            rtbLevels.Text    = wspr.GetLevelsString();
            pictureBox1.Image = WsprImage.MakeSpectrogram(wspr.Levels);
        }