public void InsertForm(KioskForm kioskForm, int Index) { this.FormCollection.ForEach(f => { if (f.Key >= Index) { f.Key += 1; } }); this.FormCollection.Insert(Index, new UIElementInfo(kioskForm, this.FormCollection.Count)); }
public void AddForm(KioskForm kioskForm) { this.FormCollection.Add(new UIElementInfo(kioskForm, this.FormCollection.Count)); }
public UIElementInfo(KioskForm form, int index) { this.kioskForm = form; this.Key = index; }