private void DisplayLoadAccountInfo() { bool maxAtemptsExceeded = false; bool loadAccountInfo = false; if (_salesperson.AccountID != "") { loadAccountInfo = _consoleView.DisplayLoadAccountInfo(_salesperson, out maxAtemptsExceeded); } else { loadAccountInfo = _consoleView.DisplayLoadAccountInfo(out maxAtemptsExceeded); } if (true) { XmlServices xmlServices = new XmlServices(DataSettings.dataFilePathXml); _salesperson = xmlServices.ReadSalespersonFromDataFile(); _consoleView.DisplayConfirmLoadAccountInfo(_salesperson); } }
/// <summary> /// load the salesman account info from a data file /// </summary> private void DisplayLoadAccountInfo() { _consoleView.DisplayLoadAccountInfo(LoadAccountInfo()); }