private static void Test_GetHostDiskusage(Host host)
        {
            XenConnect           conn  = new XenConnect(host, testServerId, testip);
            List <DiskStatistic> stats = null;

            conn.getHostDiskUsage(out stats);
        }
        private void updateHostOverview(Host host)
        {
            label_overview_host_name.Content               = host.Name;
            label_overview_host_vm_count.Content           = host.VmCount;
            label_overview_host_power.Content              = host.PowerState;
            label_overview_host_id.Content                 = host.Id;
            label_overview_host_libvirt_ip.Content         = host.LibvirtIp;
            label_overview_host_libvirt_port.Content       = host.LibvirtPort;
            label_overview_host_agentlistner_ip.Content    = host.AgentListenerIp;
            label_overview_host_agentlistener_port.Content = host.AgentListenerPort;
            XenConnect           conn  = new XenConnect(host, Settings.SystemIdentifier, Settings.SystemIp);
            List <DiskStatistic> stats = null;

            conn.getHostDiskUsage(out stats);
            List <KeyValuePair <string, int> > valueList = new List <KeyValuePair <string, int> >();

            foreach (DiskStatistic stat in stats)
            {
                valueList.Add(new KeyValuePair <string, int>(stat.Filesystem, stat.UsedPercentage));
            }
            pieChart.DataContext = valueList;
            barChart.DataContext = valueList;
        }