예제 #1
0
 private void View_ChangedServerEvent()
 {
     if (ProtocolFactory.isURL(View.Hostname))
     {
         Host parsed = Host.parse(View.Hostname);
         HostChanged(parsed);
     }
     else
     {
         UpdateUrlLabel();
         UpdateIdentity();
         Reachable();
     }
 }
예제 #2
0
        internal void View_ChangedServerEvent()
        {
            String input = View.Hostname;

            if (ProtocolFactory.isURL(input))
            {
                _host.init(Host.parse(input).getAsDictionary());
            }
            else
            {
                _host.setHostname(input);
            }
            ReadOpenSshConfiguration();
            ReadPasswordFromKeychain();
            ItemChanged();
            Update();
            Reachable();
        }