private void c_CachePopulated(object sender, EventArgs e) { IXenConnection c = (IXenConnection)sender; c.CachePopulated -= c_CachePopulated; MainWindowCommandInterface.TrySelectNewObjectInTree(c, false, true, false); }
private void dialog_CachePopulated(IXenConnection conn) { _dialog.CachePopulated -= dialog_CachePopulated; // first select the disconnected host in the tree // before the tree is populated, the opaque_ref of the disconnected host is the hostname // so use this to select the object. MainWindowCommandInterface.Invoke(() => MainWindowCommandInterface.SelectObjectInTree(new Host { opaque_ref = conn.Hostname })); MainWindowCommandInterface.TrySelectNewObjectInTree(conn, true, true, true); }
private void Connection_CachePopulated(IXenConnection c) { c.CachePopulated -= Connection_CachePopulated; MainWindowCommandInterface.TrySelectNewObjectInTree(c, true, true, false); }