private void WriteToCSV(_VMware.BuildVersion bv) { String updateVersion = (String) htBuild[bv.Build]; switch(bv.hostType) { case _VMware.HostType.ESX: sw.WriteLine("{0},{1},{2},{3},{4}", "VMware", "VMware ESX",bv.Version + "-" + bv.Build,updateVersion , bv.Name); sw.Flush(); break; case _VMware.HostType.VC: sw.WriteLine("{0},{1},{2},{3},{4}", "VMware", "VMware vCenter", bv.Version + "-" + bv.Build, updateVersion, bv.Name); sw.Flush(); break; } }
private void ProcessStartButtonVCOnly() { vmware = new _VMware(this); vmware.OnDataReady += new _VMware.DataEventReady(vmware_OnDataReady); int vCenterServerCount = memoEditvCenter.Lines.Length; foreach (String vcServer in memoEditvCenter.Lines) { vmware.QueryVCESXBuildAsync(vcServer); } }