private void blocksPictureBox_Click(object sender, EventArgs e) { if (blocksForm == null || !blocksForm.Visible) { blocksForm = new ImageForm { Text = "Blocks", MdiParent = this }; } blocksForm.CopyImage(Model.BlocksBitmap, Model.GridWidth, Model.GridHeight, 0.15f); MoveResizeAsMdiChild(blocksForm, show: true); }
private void charsPictureBox_Click(object sender, EventArgs e) { if (charsForm == null || !charsForm.Visible) { charsForm = new ImageForm { Text = "Characters", MdiParent = this }; } // Note: atm sprite/tile size is hard code and suits ZX Spectrum Next, it would be better to move this elsewhere - `MainModel` for example... charsForm.CopyImage(Model.CharsBitmap, Model.ItemWidth(), Model.ItemHeight(), 1f); MoveResizeAsMdiChild(charsForm, show: true); }