コード例 #1
0
        private void UpdateStreamsUI(Flowsheet flowsheet, DryingGasStream stream)
        {
            this.stream = stream;

            gasLabelsCtrl = new HumidityChartStreamLabelsControl(stream);
            this.groupBox.Controls.Add(gasLabelsCtrl);
            gasLabelsCtrl.Location = new Point(4, 12 + 20 + 2);

            gasValuesCtrl = new HumidityChartStreamValuesControl(flowsheet, stream);
            this.groupBox.Controls.Add(gasValuesCtrl);
            gasValuesCtrl.Location   = new Point(196, 12 + 20 + 2);
            this.textBoxGasName.Text = stream.Name;
            UI.SetStatusColor(this.textBoxGasName, stream.SolveState);
            stream.SolveComplete += new SolveCompleteEventHandler(stream_SolveComplete);
        }
コード例 #2
0
        private void UpdateStreamsUI(Flowsheet flowsheet, DryingGasStream gasIn, DryingGasStream gasOut)
        {
            this.gasIn  = gasIn;
            this.gasOut = gasOut;

            gasLabelsCtrl = new HumidityChartStreamLabelsControl(gasIn);
            this.groupBox.Controls.Add(gasLabelsCtrl);
            gasLabelsCtrl.Location = new Point(4, 12 + 20 + 2);

            gasValuesInCtrl = new HumidityChartStreamValuesControl(flowsheet, gasIn);
            this.groupBox.Controls.Add(gasValuesInCtrl);
            gasValuesInCtrl.Location   = new Point(196, 12 + 20 + 2);
            this.textBoxGasInName.Text = gasIn.Name;
            UI.SetStatusColor(this.textBoxGasInName, gasIn.SolveState);
            gasIn.SolveComplete += new SolveCompleteEventHandler(gasIn_SolveComplete);

            gasValuesOutCtrl = new HumidityChartStreamValuesControl(flowsheet, gasOut);
            this.groupBox.Controls.Add(gasValuesOutCtrl);
            gasValuesOutCtrl.Location   = new Point(276, 12 + 20 + 2);
            this.textBoxGasOutName.Text = gasOut.Name;
            UI.SetStatusColor(this.textBoxGasOutName, gasOut.SolveState);
            gasOut.SolveComplete += new SolveCompleteEventHandler(gasOut_SolveComplete);
        }