public void AddCancel(HtmlHelper html, UrlData nextEntry) { var cancel = html.ControllerAction(MvcUi.Cancel, IdConstants.CancelAction, IdConstants.HomeName, IdConstants.CancelButtonClass, MvcUi.Cancel, AddPageData(nextEntry, new RouteValueDictionary(new {nextId = nextEntry.Id}))).ToString(); Document = XDocument.Parse(cancel).Element("form").Document; }
public void AddCloseOthers(HtmlHelper html) { var closeOthers = html.ControllerAction("", IdConstants.ClearHistoryOthersAction, IdConstants.HomeName, IdConstants.ClearOthersButtonClass, "", AddPageData(this, new RouteValueDictionary(new {id = Id}))).ToString(); AddElement(ToElement(closeOthers)); }
public void AddCloseAll(HtmlHelper html) { const bool clearAll = true; var closeAll = html.ControllerAction("", IdConstants.ClearHistoryAction, IdConstants.HomeName, IdConstants.ClearButtonClass, "", new RouteValueDictionary(new {clearAll})).ToString(); AddElement(ToElement(closeAll)); }
public void AddCloseThis(HtmlHelper html, UrlData nextEntry) { var closeThis = html.ControllerAction("", IdConstants.ClearHistoryItemAction, IdConstants.HomeName, IdConstants.ClearItemButtonClass, "", AddPageData(nextEntry, new RouteValueDictionary(new {id = Id, nextId = nextEntry.Id}))).ToString(); var closeThisElem = XDocument.Parse(closeThis).Element("form"); AddElement(closeThisElem); }