// TODO: See if this could be made fire and forget public void AddEntry(BoxUserControl origin, BoxUserControl destination) { ScrollToTopOfPanel(); EntryCount++; var historyEntry = new HistoryEntryUserControl(EntryCount, origin, destination); panelHistoryEntries.Controls.Add(historyEntry); var entryHeight = (EntryCount - 1) * 75; historyEntry.Location = new Point(0, entryHeight); panelHistoryEntries.ScrollControlIntoView(historyEntry); }
public static List <JsonControl> GetAllJsonControls(Control parent) { return(BoxUserControl.GetAllJsonControls(parent)); }