Ejemplo n.º 1
0
        private void CallsignEntry_Changed(object sender, NStack.ustring e)
        {
            var callsignData = locationLookup.GetCallsingComponents(callsignEntry.Text.ToString().ToUpper());

            if (callsignData != null)
            {
                ITUEntry = new TextField(20, 3, 12, callsignData.ITU);
                CQEntry  = new TextField(20, 5, 12, callsignData.CQ);
                window.Add(ITUEntry, CQEntry);
            }
        }
Ejemplo n.º 2
0
        private void updateStats(string callsign)
        {
            var callsignData = locationLookup.GetCallsingComponents(callsign);

            if (callsignData != null)
            {
                var callsignStat = new TextView(new Rect(105, 2, 15, 1))
                {
                    CanFocus = false,
                    ReadOnly = true,
                    Text     = callsign
                };

                var continentStat = new TextView(new Rect(105, 3, 15, 1))
                {
                    CanFocus = false,
                    ReadOnly = true,
                    Text     = callsignData.Continent
                };

                var countryStat = new TextView(new Rect(105, 4, 15, 1))
                {
                    CanFocus = false,
                    ReadOnly = true,
                    Text     = callsignData.Country
                };

                var ituStat = new TextView(new Rect(105, 5, 15, 1))
                {
                    CanFocus = false,
                    ReadOnly = true,
                    Text     = callsignData.ITU
                };

                var cqStat = new TextView(new Rect(105, 6, 15, 1))
                {
                    CanFocus = false,
                    ReadOnly = true,
                    Text     = callsignData.CQ
                };

                var countStat = new TextView(new Rect(105, 9, 15, 1))
                {
                    CanFocus = false,
                    ReadOnly = true,
                    Text     = sessionDatabase.Records.Count().ToString()
                };

                mainTop.Add(callsignStat, continentStat, countryStat, ituStat, cqStat, countStat);
            }
        }