public ActionResult Test1(String Index, String Denotation, Int32 Depth) { var Selected = GetInstance.CalendarGraph.ActiveElement.Content .FirstOrDefault(x => x.Index == Index && x.Denotation == Denotation && x.Depth == Depth); GetInstance.CalendarGraph.ActiveElement = Selected; var ExploderVM = new ExploderViewModel(GetInstance.CalendarGraph); ExploderVM.SelectedElement = Selected; return PartialView("~/Views/Exploder/Exploder.cshtml", ExploderVM); }
// // GET: /Exploder/ public ActionResult Index(ExploderViewModel Model) { return View(); }
public ActionResult OpenParent(String Index, String Denotation, Int32 Depth) { var Incoming = new Element() { Index = Index, Denotation = Denotation, Depth = Depth }; Element Selected; if (GetInstance.CalendarGraph.ActiveElement == Incoming) { Selected = GetInstance.CalendarGraph.ActiveElement; } else { Selected = GetInstance.CalendarGraph.ActiveElement.FindAncestor(Incoming); GetInstance.CalendarGraph.ActiveElement = Selected; } var ExploderVM = new ExploderViewModel(GetInstance.CalendarGraph); ExploderVM.SelectedElement = Selected; return PartialView("~/Views/Exploder/Exploder.cshtml", ExploderVM); }