Daniel-Martinez / Tags

Tags
0 stars 0 forks source link

Operator needs to be able to upload a new list of targets from with in the application. #12

Closed Daniel-Martinez closed 10 years ago

Daniel-Martinez commented 10 years ago

need to create a method that will allow an Operator to type load "path to new targetlist"

Daniel-Martinez commented 10 years ago

Created a method that allows the new file to be loaded into console application.

 case "load":                              
                        path = enteredValue;

                        if (!File.Exists(path))
                        {
                            System.Console.WriteLine("yeh thats just a bad file.\n");
                        }
                        else
                        {
                            targetList = targetFactory.Product(path);
                            statusList = targetList;
                            Console.Write("argghh argghh new targets in sight!!\n\n");
                        }
                        break;