private void spawnWindow() { textEdit = new EditMusicText2(); textEdit.Owner = this; textEdit.UpdateTilemapFrom += new EditMusicText2.TilemapUpdate(textEdit_UpdateTilemapFrom); tilemapChanged(); textEdit.Show(); }
private void button1_Click(object sender, EventArgs e) { if (textEdit != null) { if (textEdit.IsDisposed) { textEdit = null; spawnWindow(); } else { textEdit.Focus(); } } else { spawnWindow(); } }