| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 | using DevExpress.XtraEditors;using Ips.Library.DxpLib;using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace Ips.Sps.Sigs{    public partial class SetGREditForm : DevExpress.XtraEditors.XtraForm    {        public SetGREditForm()        {            InitializeComponent();        }        public static double FreqGR;        public static double BandWidthGR;        private void SetGREditForm_Load(object sender, EventArgs e)        {            txtFreqGR.Text = FreqGR.ToString();            txtBandWidthGR.Text = BandWidthGR.ToString();        }        private void btnSave_Click(object sender, EventArgs e)        {            if (double.TryParse(txtFreqGR.Text, out double freq))            {                FreqGR = freq;            }            else            {                MsgHelper.ShowError("请输入正确的干扰频点!");                return;            }            if (double.TryParse(txtBandWidthGR.Text, out double bw))            {                BandWidthGR = bw;            }            else            {                MsgHelper.ShowError("请输入正确的干扰带宽!");                return;            }            this.DialogResult = DialogResult.OK;            Close();        }    }}
 |