示例#1
0
        // 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);
        }
示例#2
0
 public static List <JsonControl> GetAllJsonControls(Control parent)
 {
     return(BoxUserControl.GetAllJsonControls(parent));
 }