private double DetermineBatteryDepthOfDischarge(ComboBox DepthOfDischarge) { int k = DepthOfDischarge.SelectedIndex; double DoD = DoD = 10 / (k + 1); //MessageBox.Show(DoD.ToString()); return (DoD); }
private double DetermineBatteryDepthOfDischarge(ComboBox DepthOfDischarge) { double k = Convert.ToDouble(DepthOfDischarge.SelectedIndex); double DoD = 10.0 / (k + 1.0); //MessageBox.Show(DoD.ToString()); return (DoD); }
double DoD = DoD = 10.0 / (k + 1.0);
private double DetermineBatteryDepthOfDischarge(ComboBox DepthOfDischarge) { Double k = cdbl(DepthOfDischarge.SelectedIndex); Double DoD = 10.0 / (k + 1.0); //MessageBox.Show(DoD.ToString()); return (DoD); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)