protected override void OnLoad(EventArgs e)
 {
     var args = e.As<LoadEventArgs>();
     base.OnLoad(args);
     peakComboBox.Items.AddRange(args.PeakList);
     peakComboBox.SelectedIndex = args.NormPeakNumber;
     //double coeff = args.Coeff;
 }
Exemplo n.º 2
0
 protected override void OnLoad(EventArgs e)
 {
     var args = e.As<LoadEventArgs>();
     args.Method += InvokeSetVisibility;
     base.OnLoad(args);
     rareModeCheckBox.Checked = args.NotRareModeRequested;
     var co = args.CommonOptions;
     if (co != null)
         loadCommonData(co);
 }
Exemplo n.º 3
0
        protected override void OnLoad(EventArgs e)
        {
            inletRadioButton_CheckedChanged(this, e);
            temperatureCheckBox_CheckedChanged(this, e);

            var args = e.As<ParamsEventArgs<decimal>>();
            base.OnLoad(args);
            var data = args.Parameters;
            if (data == null)
                return;
            voltageNumericUpDown.Minimum = data[0];
            voltageNumericUpDown.Maximum = data[1];
            // TODO: move to traslatable resources
            inletRadioButton.Text = string.Format("Напряжение ({0:F0}-{1:F0}В)", data[0], data[1]);
            voltageNumericUpDown.Value = data[2];
            temperatureNumericUpDown.Minimum = data[3];
            temperatureNumericUpDown.Maximum = data[4];
            // TODO: move to traslatable resources
            temperatureCheckBox.Text = string.Format("Температура ({0:F0}-{1:F0}C)", data[3], data[4]);
            temperatureNumericUpDown.Value = data[5];
        }
Exemplo n.º 4
0
        protected override void OnLoad(EventArgs e)
        {
            var args = e.As<LoadEventArgs>();
            args.Method += InvokeEnableForm;
            base.OnLoad(args);

            // TODO: transmit Config and Graph data in LoadEventArgs
            bool enable = Graph.PointToAdd != null;
            insertPointButton.Enabled = enable;
            loadPreciseEditorData(Config.PreciseData);
            if (!enable) {
                Graph.OnPointAdded += Graph_OnPointAdded;
            }
        }