コード例 #1
0
        /// <summary>
        /// Инициализирует новый экземпляр класса
        /// </summary>
        public Tech()
        {
            stages = new TechStages(this);

            tech_volume        = new TechParameter();
            tech_volume.Format = "{0:F2}";

            tech_consumption        = new TechParameter();
            tech_consumption.Format = "{0:F1}";

            tech_density        = new TechParameter();
            tech_density.Format = "{0:F3}";

            tech_pressure        = new TechParameter();
            tech_pressure.Format = "{0:F1}";

            tech_temperature        = new TechParameter();
            tech_temperature.Format = "{0:F3}";

            tech_proccessVolume = new TechParameter();

            tech_volume.gType      = "ADDDFF1B-92CE-42C4-BB4B-E50B8382A531";
            tech_consumption.gType = "6919E0F5-31FE-4386-9328-54C0E76D198C";

            tech_density.gType  = "D20E521B-A0FD-4EBB-BD49-AE8E706F50EC";
            tech_pressure.gType = "999C94B9-DA92-4010-ACBF-EB885D9BDC7C";

            tech_temperature.gType    = "D5A1B201-81C9-4702-A78F-FE35C5C72B3A";
            tech_proccessVolume.gType = "574E8874-42A3-4262-A251-523399E2EA79";

            rgrs = new RgrList();
            for (int i = 0; i < 8; i++)
            {
                rgrs.Add(new Rgr());
            }
        }
コード例 #2
0
ファイル: Tech.cs プロジェクト: slawer/skc
        private TechParameter tech_volume; // объем

        #endregion Fields

        #region Constructors

        /// <summary>
        /// Инициализирует новый экземпляр класса
        /// </summary>
        public Tech()
        {
            stages = new TechStages(this);

            tech_volume = new TechParameter();
            tech_volume.Format = "{0:F2}";

            tech_consumption = new TechParameter();
            tech_consumption.Format = "{0:F1}";

            tech_density = new TechParameter();
            tech_density.Format = "{0:F3}";

            tech_pressure = new TechParameter();
            tech_pressure.Format = "{0:F1}";

            tech_temperature = new TechParameter();
            tech_temperature.Format = "{0:F3}";

            tech_proccessVolume = new TechParameter();

            tech_volume.gType = "ADDDFF1B-92CE-42C4-BB4B-E50B8382A531";
            tech_consumption.gType = "6919E0F5-31FE-4386-9328-54C0E76D198C";

            tech_density.gType = "D20E521B-A0FD-4EBB-BD49-AE8E706F50EC";
            tech_pressure.gType = "999C94B9-DA92-4010-ACBF-EB885D9BDC7C";

            tech_temperature.gType = "D5A1B201-81C9-4702-A78F-FE35C5C72B3A";
            tech_proccessVolume.gType = "574E8874-42A3-4262-A251-523399E2EA79";

            rgrs = new RgrList();
            for (int i = 0; i < 8; i++)
            {
                rgrs.Add(new Rgr());
            }
        }