()
| 213 | #region LOAD EVERYTHING ELSE |
| 214 | |
| 215 | private void LoadCSVLines() |
| 216 | { |
| 217 | string sDesc = string.Empty; |
| 218 | string sPrice = string.Empty; |
| 219 | |
| 220 | try |
| 221 | { |
| 222 | string fileContent = File.ReadAllText(filePath); |
| 223 | string[] lines = fileContent.Split(new char[] { '\n', '\r' }, StringSplitOptions.RemoveEmptyEntries); |
| 224 | |
| 225 | foreach (string line in lines) |
| 226 | { |
| 227 | string[] parts = line.Split(','); |
| 228 | if (parts.Length >= 3) |
| 229 | { |
| 230 | string symbol = parts[0].Trim(); |
| 231 | string desc = parts[1].Trim(); |
| 232 | if (double.TryParse(parts[2].Trim(), out double price)) |
| 233 | { |
| 234 | days a = new days(); |
| 235 | a.price = Convert.ToDecimal(price); |
| 236 | a.label = desc; |
| 237 | lsS.Add(a); |
| 238 | } |
| 239 | } |
| 240 | } |
| 241 | } |
| 242 | catch { } |
| 243 | } |
| 244 | |
| 245 | private void LoadFromService(String sLevels, string source) |
| 246 | { |
nothing calls this directly
no outgoing calls
no test coverage detected