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 { } }
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 { } }