コード例 #1
0
        private void txtTxFreq_Leave(object sender, EventArgs e)
        {
            int index = (int)this.dgvChannels.CurrentRow.Tag;

            this.txtTxFreq.Visible = false;
            int    int_ = 0;
            double num  = 0.0;
            string text = this.txtTxFreq.Text;

            try
            {
                uint num2 = 0u;
                num = double.Parse(text);
                if (Class15.smethod_19(num, ref num2) < 0)
                {
                    return;
                }
                int_ = Class15.smethod_27(num, 100000.0);
                Class15.smethod_29(ref int_, 250, 625);
                num  = Class15.smethod_28(int_, 100000);
                text = string.Format("{0:f5}", num);
            }
            catch
            {
                return;
            }
            this.dgvChannels.CurrentCell.Value = text;
            ChannelForm.data.SetTxFreq(index, text);
            if (ChannelForm.data.FreqIsSameRange(index) < 0)
            {
                ChannelForm.data.SetRxFreq(index, text);
                this.dgvChannels.CurrentRow.Cells[2].Value = text;
            }
            ((MainForm)base.MdiParent).RefreshRelatedForm(base.GetType());
        }