private void button1_Click(object sender, EventArgs e) { //Open the block editor if (window == null) { window = new BlockWindow(); window.Show(); } }
public ModifyBlock(int moddedBlock, BlockWindow form) { InitializeComponent(); parsedForm = form; indexModdedBlock = moddedBlock; //Load the info into the textboxes textBox1.Text = form.blocks[moddedBlock].musicFilePath; textBox2.Text = form.blocks[moddedBlock].name; textBox3.Text = form.blocks[moddedBlock].keyCode; }