Exemplo n.º 1
0
        private void Gruz()
        {
            try
            {
                var data = new DataForLoadCalc
                {
                    Type         = TypeBox,
                    Gender       = Gender,
                    LoadPosition = Position,
                    DistanceExis = DistanceExis,
                    RequiredLoad = RequiredLoad,
                    LoadWeight   = Weight,
                    FrontWeight  = textBoxF,
                    BackWeight   = textBoxB
                };

                _loadCalculate.LoadCalculate(data);
            }
            catch { }
        }
Exemplo n.º 2
0
        private void Gruz()
        {
            try
            {
                var data = new DataForLoadCalc
                {
                    RequiredLoad = RequiredLoad,
                    Gender       = Gender,
                    Type         = new TextBox {
                        Text = Razgon2.Enabled ? "4" : "2"
                    },
                    DistanceExis = new TextBox {
                        Text = GetBeanFromInput().DistanceExis.ToString()
                    },
                    BackWeight   = Rear,
                    FrontWeight  = front,
                    LoadPosition = Position,
                    LoadWeight   = Weight
                };

                _loadCalculate.LoadCalculate(data);
            }
            catch { }
        }