public void Dispose() { if (fDisposed) { return; } if (CurrentListView != null) { CurrentListView.Dispose(); CurrentListView = null; } fDisposed = true; }
public async Task <IActionResult> Index() { var user = await _userManager.FindByNameAsync(User.Identity.Name); CurrentListView current = new CurrentListView() { City = user.City, State = user.State, Surname = user.Surname, Email = user.Email, Id = user.Id, Name = user.Name, PictureUrl = user.PictureUrl }; return(View(current)); }
public void Initialize() { IntPtr hwndShellView = WindowUtils.FindChildWindow(hwndExplorer, hwnd => PInvoke.GetClassName(hwnd) == "SHELLDLL_DefView"); if (hwndShellView == IntPtr.Zero) { if (CurrentListView != null) { CurrentListView.Dispose(); } CurrentListView = new AbstractListView(); ListViewChanged(this, null); } else { RecaptureHandles(hwndShellView); } }