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); }
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); }
public ReachabilityAction(ConnectionController controller, String hostname) { _controller = controller; _hostname = hostname; }