示例#1
0
 public void NotifyError(IUserInputSource userInputSource, UserInputError userInputError)
 {
     if(userInputError != null)
     {
         var control = GetControlFromInputSource(userInputSource);
         if(control != null)
         {
             _notificationService.NotifyInputError(control, userInputError.Title, userInputError.Message);
         }
     }
 }
示例#2
0
 public void NotifyError(IUserInputSource userInputSource, UserInputError userInputError)
 {
     if (userInputError != null)
     {
         var control = GetControlFromInputSource(userInputSource);
         if (control != null)
         {
             _notificationService.NotifyInputError(control, userInputError.Title, userInputError.Message);
         }
     }
 }
示例#3
0
    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();
    }