public void Cleanup() { _vecsClient.CloseServer(); _certStoreClient = null; _afdClient = null; _vecsClient = null; IsLoggedIn = false; Password = null; }
void RefreshStores() { this.Children.Clear(); MMCActionHelper.CheckedExec(delegate() { var client = new Vecs.VecsClient(ServerDTO.Server, ServerDTO.UserName, ServerDTO.Password); var stores = client.GetStores(); foreach (var store in stores) { var activeNode = new VecsStoreNode(ServerDTO, store); this.Children.Add(activeNode); } }); }