public StackEntry(LayoutChoice_Set layout, string name, OnBack_Listener listener, int backPriority = 1) { this.Layout = layout; if (listener != null) { this.Listeners.Add(listener); } this.Name = name; this.BackPriority = backPriority; }
public void AddLayout(LayoutChoice_Set newLayout, String name, OnBack_Listener listener) { this.AddLayout(new StackEntry(newLayout, name, listener)); }