public void Init(Graph graph) { Graph = graph; var commonOpts = graph.CommonOptions; if (commonOpts == null) return; SuspendLayout(); etime_label.Text = commonOpts.eTimeReal.ToString(); //itime_label.Text = commonOpts.iTimeReal.ToString(); iVolt_label.Text = commonOpts.iVoltageReal.ToString("f3"); //cp_label.Text = commonOpts.CPReal.ToString("f3"); cp_label.Text = commonOpts.C.ToString("f5"); emCurLabel.Text = commonOpts.eCurrentReal.ToString("f3"); //heatCurLabel.Text = commonOpts.hCurrentReal.ToString("f3"); f1_label.Text = commonOpts.fV1Real.ToString("f3"); f2_label.Text = commonOpts.fV2Real.ToString("f3"); prepareControls(); Enabled = true; ResumeLayout(false); PerformLayout(); }
public void Init(Graph graph) { Graph = graph; var commonOpts = graph.CommonOptions; if (commonOpts == null) { return; } SuspendLayout(); etime_label.Text = commonOpts.eTimeReal.ToString(); //itime_label.Text = commonOpts.iTimeReal.ToString(); iVolt_label.Text = commonOpts.iVoltageReal.ToString("f3"); //cp_label.Text = commonOpts.CPReal.ToString("f3"); cp_label.Text = commonOpts.C.ToString("f5"); emCurLabel.Text = commonOpts.eCurrentReal.ToString("f3"); //heatCurLabel.Text = commonOpts.hCurrentReal.ToString("f3"); f1_label.Text = commonOpts.fV1Real.ToString("f3"); f2_label.Text = commonOpts.fV2Real.ToString("f3"); prepareControls(); Enabled = true; ResumeLayout(false); PerformLayout(); }