protected override void Run() { Description = Messages.DISABLING; RelatedTask = PVS_proxy.async_destroy(Session, proxy.opaque_ref); PollToCompletion(0, 100); Description = Messages.DISABLED; }
protected override void Run() { Description = Messages.ENABLING; RelatedTask = PVS_proxy.async_create(Session, site.opaque_ref, vif.opaque_ref); PollToCompletion(0, 100); Description = Messages.ENABLED; }
public PvsProxyDestroyAction(PVS_proxy proxy) : base(proxy.Connection, string.Format(Messages.ACTION_DISABLE_PVS_READ_CACHING_FOR, proxy.VM())) { this.proxy = proxy; this.VM = proxy.VM(); this.Description = Messages.WAITING; SetRBACPermissions(); }
private void UpdateRow(DataGridViewRow row, VM vm, PVS_proxy pvsProxy) { PVS_site pvsSite = pvsProxy == null ? null : Connection.Resolve(pvsProxy.site); row.Cells[0].Value = vm.Name; row.Cells[1].Value = pvsProxy == null ? Messages.NO : Messages.YES; row.Cells[2].Value = pvsProxy == null || pvsSite == null ? Messages.NO_VALUE : pvsSite.Name; row.Cells[3].Value = pvsProxy == null ? Messages.NO_VALUE : pvs_proxy_status_extensions.ToFriendlyString(pvsProxy.status); }
private void RegisterVmEventHandlers(VM vm, PVS_proxy pvsProxy) { vm.PropertyChanged -= VmPropertyChanged; vm.PropertyChanged += VmPropertyChanged; if (pvsProxy != null) { pvsProxy.PropertyChanged -= PvsProxyPropertyChanged; pvsProxy.PropertyChanged += PvsProxyPropertyChanged; PVS_site pvsSite = pvsProxy == null ? null : Connection.Resolve(pvsProxy.site); if (pvsSite != null) { pvsSite.PropertyChanged -= PvsSitePropertyChanged; pvsSite.PropertyChanged += PvsSitePropertyChanged; } } }