예제 #1
0
        private void c_CachePopulated(object sender, EventArgs e)
        {
            IXenConnection c = (IXenConnection)sender;

            c.CachePopulated -= c_CachePopulated;

            MainWindowCommandInterface.TrySelectNewObjectInTree(c, false, true, false);
        }
예제 #2
0
        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);
        }
예제 #3
0
        private void Connection_CachePopulated(IXenConnection c)
        {
            c.CachePopulated -= Connection_CachePopulated;

            MainWindowCommandInterface.TrySelectNewObjectInTree(c, true, true, false);
        }