SaveLocationControl AddLocation() { SaveLocationControl s = new SaveLocationControl(); s.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); s.Name = "saveLocationControl1"; s.Size = new System.Drawing.Size(710, 63); s.Location = new System.Drawing.Point(4, m_index * s.Size.Height); s.TabIndex = m_index; return(s); }
void LoadHistory() { panel1.Controls.Clear(); m_list.Clear(); m_index = 0; foreach (KeyValuePair <string, TileBlock> hb in m_historyBlocks) { SaveLocationControl s = AddLocation(); s.Setup(m_index, hb.Key, hb.Value); m_index++; s.SetCallback(pCallback); panel1.Controls.Add(s); m_list.Add(s); } }