// push public void push(int ViewIndex, object context, PostGoBackEventHandler PostBackEventHnd) { SessionHistoryEntry entry = new SessionHistoryEntry(); entry.hasMultiViewRef = true; entry.MultiViewIndex = ViewIndex; entry.PostGoBackHnd += PostBackEventHnd; SessionHistoryStack.Push(entry); }
public void push(string Url, object Context, PostGoBackEventHandler PostGoBackEventHnd) { SessionHistoryEntry entry = new SessionHistoryEntry(); entry.hasUrl = true; entry.Url = Url; entry.Context = Context; entry.PostGoBackHnd += PostGoBackEventHnd; SessionHistoryStack.Push(entry); }
public bool pop(out SessionHistoryEntry entry) { if (SessionHistoryStack.Count > 0) { entry = SessionHistoryStack.Pop(); return(true); } else { entry = null; return(false); } }
public void push(int ViewIndex, string Url, object Context, PostGoBackEventHandler PostBackEventHnd) { // 1. Eintrag beim Rücksprung in der angesprungenen WebForm // verarbeitet werden SessionHistoryEntry entry1 = new SessionHistoryEntry(); entry1.hasMultiViewRef = true; entry1.MultiViewIndex = ViewIndex; entry1.PostGoBackHnd += PostBackEventHnd; SessionHistoryStack.Push(entry1); // 2. Eintrag wird beim Rücksprung von der WebForm, aus der // Rücksprung startet, ausgewertet SessionHistoryEntry entry2 = new SessionHistoryEntry(); entry2.hasUrl = true; entry2.Url = Url; entry2.Context = Context; SessionHistoryStack.Push(entry2); }