Example #1
0
        private async void btnAxleEquivalencyFactor_Click(object sender, RoutedEventArgs e)
        {
            if (CalcHelper.Settings.TrafficMethod == TrafficMethod.TrafficMethod2)
            {
                var dlg = new AxleEquivalencyFactorSelector();
                await DialogHost.Show(dlg);

                txtAxleEquivalencyFactor.Text = CalcHelper.Settings.F_AxleEquivalencyFactor.ToString();
            }
            else
            {
                var dlg = new AxleEquivalencyFactorsSelector();
                await DialogHost.Show(dlg);

                txtF3.Text  = CalcHelper.GetFbyVehicleClass(3).ToString();
                txtF4.Text  = CalcHelper.GetFbyVehicleClass(4).ToString();
                txtF5.Text  = CalcHelper.GetFbyVehicleClass(5).ToString();
                txtF6.Text  = CalcHelper.GetFbyVehicleClass(6).ToString();
                txtF7.Text  = CalcHelper.GetFbyVehicleClass(7).ToString();
                txtF8.Text  = CalcHelper.GetFbyVehicleClass(8).ToString();
                txtF9.Text  = CalcHelper.GetFbyVehicleClass(9).ToString();
                txtF10.Text = CalcHelper.GetFbyVehicleClass(10).ToString();
                txtF11.Text = CalcHelper.GetFbyVehicleClass(11).ToString();
                txtF12.Text = CalcHelper.GetFbyVehicleClass(12).ToString();
            }
        }
Example #2
0
 private void btnOk_Click(object sender, RoutedEventArgs e)
 {
     if (CalcHelper.Settings.F_AxleEquivalencyFactor > 0 || CalcHelper.GetFbyVehicleClass(3) > 0)
     {
         btnOk.Command = DialogHost.CloseDialogCommand;
     }
 }