Esempio n. 1
0
        private void DrawChart(string valueName)
        {
            if (Tables == null)
            {
                MessageBox.Show("请先读取!"); return;
            }
            var maxVal    = enabledFloatControl_max.Value;
            var minVal    = enabledFloatControl_min.Value;
            var enableMax = enabledFloatControl_max.GetEnabledValue().Enabled;
            var enableMin = enabledFloatControl_min.GetEnabledValue().Enabled;

            foreach (var table in Tables)
            {
                var data = table.GetNumeralKeyDic("Lon", "Lat", valueName);
                var span = data.ValueSpan;
                if (enableMax)
                {
                    log.Info("数值范围 " + span + ", 最大值调整到 “" + maxVal + "” ");
                    span.End = maxVal;
                }
                if (enableMin)
                {
                    log.Info("数值范围 " + span + ", 最小值调整到 “" + minVal + "” ");
                    span.Start = minVal;
                }
                TwoDimColorChartForm form = new TwoDimColorChartForm(data, span);
                form.Text = valueName + " of " + table.Name;
                form.Show();
            }
        }
Esempio n. 2
0
        private void button_drawMultiRms_Click(object sender, EventArgs e)
        {
            if (tableRmsData == null)
            {
                return;
            }

            var form = new TwoDimColorChartForm(tableRmsData);

            form.Text = "电离层 RMS Of 计算结果 " + time;
            form.Show();
        }
Esempio n. 3
0
        private void button_drawAllRms_Click(object sender, EventArgs e)
        {
            if (this.File == null)
            {
                return;
            }

            foreach (var time in File.Keys)
            {
                var form = new TwoDimColorChartForm(File[time].GetNumeralKeyDic(true));
                form.Text = "电离层 of " + time.ToString();
                form.Show();
            }
        }
Esempio n. 4
0
        private void button_drawRms_Click(object sender, EventArgs e)
        {
            if (this.bindingSource_times.Current == null || File == null)
            {
                return;
            }

            Time time    = (Time)this.bindingSource_times.Current;
            var  section = File[time];

            ////var form = new TwoDimColorChartForm(section.GetGeoCoords() );
            ////form.Show();
            var form = new TwoDimColorChartForm(section.GetNumeralKeyDic(true));

            form.Text = "电离层 RMS " + time.ToString();
            form.Show();
        }
Esempio n. 5
0
        private void button_draw_Click(object sender, EventArgs e)
        {
            if (table == null)
            {
                MessageBox.Show("请先计算!"); return;
            }
            if (!IsCompleted)
            {
                MessageBox.Show("请稍等,还没有计算完毕!"); return;
            }
            var valueName = "Val";
            var data      = table.GetNumeralKeyDic("Lon", "Lat", valueName);

            TwoDimColorChartForm form = new TwoDimColorChartForm(data, null);

            form.Text = valueName + " of " + table.Name;
            form.Show();
        }