Ejemplo n.º 1
0
        public void OpenDesignerDlg(Window _owner, FullyObservableCollection <NozzleType> _nozzletypes)
        {
            Views.NozzlePattern np = new Views.NozzlePattern(_nozzletypes);

            if (_owner == null)
            {
                np.ShowDialog();
            }
            else
            {
                np.Owner = _owner;
                np.ShowDialog();
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Create static list of nozzles
        /// </summary>
        public static void CreateNozzleList()
        {
            _nozzletypes = new FullyObservableCollection <NozzleType>
            {
                new NozzleType()
                {
                    NozzleTypeName = Constants.StandardNozzle, SystemNozzle = true
                },
                new NozzleType()
                {
                    NozzleTypeName = Constants.AsymmetricLeftNozzle, SystemNozzle = true
                },
                new NozzleType()
                {
                    NozzleTypeName = Constants.AsymmetricRightNozzle, SystemNozzle = true
                },
                new NozzleType()
                {
                    NozzleTypeName = Constants.SystemNozzle1, SystemNozzle = true
                },
                new NozzleType()
                {
                    NozzleTypeName = Constants.SystemNozzle2, SystemNozzle = true
                },
                new NozzleType()
                {
                    NozzleTypeName = Constants.SystemNozzle3, SystemNozzle = true
                },
                new NozzleType()
                {
                    NozzleTypeName = Constants.SystemNozzle4, SystemNozzle = true
                },
                new NozzleType()
                {
                    NozzleTypeName = Constants.SystemNozzle5, SystemNozzle = true
                }
            };

            List <Pattern> _nozzlepatterns = StaticData.GetCustomNozzles();

            foreach (Pattern cp in _nozzlepatterns)
            {
                _nozzletypes.Add(new NozzleType()
                {
                    NozzleTypeName = cp.PName, Pattern = cp.PPattern, SystemNozzle = false
                });
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Create standard list of nozzle orifice data using parameters from Excel calcs
        /// </summary>
        public static void CreateNozzledata()
        {
            FullyObservableCollection <Models.NozzleDataModel> _datacoll = new FullyObservableCollection <Models.NozzleDataModel>
            {
                new Models.NozzleDataModel()
                {
                    id = 0, Orifice = "Blocked", Power = 0, Coefficient = 0
                },
                new Models.NozzleDataModel()
                {
                    id = 1, Orifice = "0033", Power = 0.462, Coefficient = 0.0094
                },
                new Models.NozzleDataModel()
                {
                    id = 2, Orifice = "0050", Power = 0.4975, Coefficient = 0.0116
                },
                new Models.NozzleDataModel()
                {
                    id = 3, Orifice = "0067", Power = 0.4824, Coefficient = 0.0169
                },
                new Models.NozzleDataModel()
                {
                    id = 4, Orifice = "01", Power = 0.5048, Coefficient = 0.022
                },
                new Models.NozzleDataModel()
                {
                    id = 5, Orifice = "015", Power = 0.5062, Coefficient = 0.0328
                },
                new Models.NozzleDataModel()
                {
                    id = 6, Orifice = "02", Power = 0.4887, Coefficient = 0.0483
                },
                new Models.NozzleDataModel()
                {
                    id = 7, Orifice = "03", Power = 0.4978, Coefficient = 0.0698
                },
                new Models.NozzleDataModel()
                {
                    id = 8, Orifice = "04", Power = 0.4713, Coefficient = 0.1075
                },
                new Models.NozzleDataModel()
                {
                    id = 9, Orifice = "05", Power = 0.4975, Coefficient = 0.1156
                },
                new Models.NozzleDataModel()
                {
                    id = 10, Orifice = "06", Power = 0.5055, Coefficient = 0.1318
                },
                new Models.NozzleDataModel()
                {
                    id = 11, Orifice = "07", Power = 0.4828, Coefficient = 0.1781
                },
                new Models.NozzleDataModel()
                {
                    id = 12, Orifice = "08", Power = 0.4951, Coefficient = 0.1885
                },
                new Models.NozzleDataModel()
                {
                    id = 13, Orifice = "10", Power = 0.5126, Coefficient = 0.2113
                }
            };

            _nozzledata = _datacoll;
        }