private void CreateUtilityTile(Form form, int i, int j) { ExtraControl extraControl = new ExtraControl(); extraControl.lblName.Text = _board[i, j].Name; extraControl.oPicture.Image = File.GetImageFromName(_board[i, j].Name + ".png"); extraControl.lblPrice.Text = _board[i, j].Price.ToString(); int[] position = GetTileLocation(i, j);; extraControl.Location = new Point(position[0], position[1]); form.Controls.Add(extraControl); }
public ExtraControlVM(BaseMetaData metaData, object entity, ExtraControl extraControl) { MetaData = metaData; Entity = entity; ExtraControl = extraControl; }