public static ConnectionController Instance(WindowController parent)
        {
            ConnectionController c;

            if (!Controllers.TryGetValue(parent, out c))
            {
                c = new ConnectionController(new Host(ProtocolFactory.get().forName(PreferencesFactory.get().getProperty("connection.protocol.default"))));
                Controllers.Add(parent, c);
                parent.View.ViewClosedEvent += delegate
                {
                    Controllers.Remove(parent);
                    c.View.Close();
                };
            }
            return(c);
        }
Esempio n. 2
0
        public static ConnectionController Instance(WindowController parent)
        {
            ConnectionController c;

            if (!Controllers.TryGetValue(parent, out c))
            {
                c = new ConnectionController();
                Controllers.Add(parent, c);
                parent.View.ViewClosedEvent += delegate
                {
                    Controllers.Remove(parent);
                    //todo c muss wohl auch noch abgeräumt werden
                };
            }
            return(c);
        }
Esempio n. 3
0
 public ReachabilityAction(ConnectionController controller, String hostname)
 {
     _controller = controller;
     _hostname   = hostname;
 }