Here are the examples of the csharp api System.Collections.Generic.List.Remove(WebPage) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
19
Source : MechanizeBrowser.cs
with MIT License
from WilliamABradley
with MIT License
from WilliamABradley
public void ClearHistory()
{
foreach (var item in History.Reverse())
{
_History.Remove(item);
}
foreach (var item in ForwardHistory.Reverse())
{
_ForwardHistory.Remove(item);
}
}
19
Source : MechanizeBrowser.cs
with MIT License
from WilliamABradley
with MIT License
from WilliamABradley
public WebPage GoForward(int Steps = 1)
{
while (Steps > 0 || CurrentPage == null)
{
try
{
CurrentPage = ForwardHistory.Last();
_ForwardHistory.Remove(CurrentPage);
_History.Add(CurrentPage);
}
catch (InvalidOperationException)
{
throw new MechanizeBrowserStateException("Can't go Forward any further");
}
}
return CurrentPage;
}
19
Source : MechanizeBrowser.cs
with MIT License
from WilliamABradley
with MIT License
from WilliamABradley
public WebPage GoBack(int Steps = 1)
{
while (Steps > 0 || CurrentPage == null)
{
try
{
CurrentPage = History.Last();
_History.Remove(CurrentPage);
_ForwardHistory.Add(CurrentPage);
}
catch (InvalidOperationException)
{
throw new MechanizeBrowserStateException("Already at start of History");
}
}
return CurrentPage;
}