Beispiel #1
0
        public WaterStreamControl(Flowsheet flowsheet, Point location, WaterStream waterStream, StreamOrientation orientation)
            : base(flowsheet, location, waterStream, orientation)
        {
            InitializeComponent();

            this.Size = new System.Drawing.Size(UI.STREAM_CTRL_W, UI.STREAM_CTRL_H);
            UI.SetStatusColor(this, this.WaterStream.SolveState);
            //this.Orientation = StreamOrientation.Right;
            this.UpdateBackImage();
            this.flowsheet.ConnectionManager.UpdateConnections(this);
            this.Name = "Water Stream: " + waterStream.Name;
        }
Beispiel #2
0
 public MaterialStreamControl(Flowsheet flowsheet, Point location, DryingMaterialStream materialStream, StreamOrientation orientation)
     : base(flowsheet, location, materialStream, orientation)
 {
     if (materialStream.MaterialStateType == MaterialStateType.Liquid)
     {
         this.Name = "Material Stream (Liquid): " + materialStream.Name;
     }
     else if (materialStream.MaterialStateType == MaterialStateType.Solid)
     {
         this.Name = "Material Stream (Solid): " + materialStream.Name;
     }
 }
Beispiel #3
0
 public GasStreamControl(Flowsheet flowsheet, Point location, DryingGasStream gasStream, StreamOrientation orientation)
     : base(flowsheet, location, gasStream, orientation)
 {
     InitializeComponent();
     this.Name = "Gas Stream: " + gasStream.Name;
 }
Beispiel #4
0
        public ProcessStreamBaseControl(Flowsheet flowsheet, Point location, ProcessStreamBase processStreamBase, StreamOrientation orientation)
            : base(flowsheet, location, processStreamBase)
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            this.Orientation = orientation;
            this.flowsheet.ConnectionManager.UpdateConnections(this);
        }
Beispiel #5
0
 public DryingStreamControl(Flowsheet flowsheet, Point location, DryingStream dryingStream, StreamOrientation orientatin)
     : base(flowsheet, location, dryingStream, orientatin)
 {
     // This call is required by the Windows.Forms Form Designer.
     InitializeComponent();
 }