public void NotifyError(IUserInputSource userInputSource, UserInputError userInputError) { if(userInputError != null) { var control = GetControlFromInputSource(userInputSource); if(control != null) { _notificationService.NotifyInputError(control, userInputError.Title, userInputError.Message); } } }
public void NotifyError(IUserInputSource userInputSource, UserInputError userInputError) { if (userInputError != null) { var control = GetControlFromInputSource(userInputSource); if (control != null) { _notificationService.NotifyInputError(control, userInputError.Title, userInputError.Message); } } }
public UserInput() { Console.Write("Sever IP address... "); IP = Console.ReadLine(); Console.Write("Server Port... "); Port = Console.ReadLine(); Console.Write("Target Directory... "); DirPath = Console.ReadLine(); Console.WriteLine("1 -> Server"); Console.WriteLine("2 -> Client"); AppType = Console.ReadLine(); Error = FindError(); }