private void codeButton_Click(object sender, EventArgs e) { string text = @"function onLoad() { } function update() { } function inRange() { } function touch() { } function hurt() { }"; if (currentCode != "" && currentCode != null) text = currentCode; CodeDialog cD = new CodeDialog(getCode, text); cD.Show(); }
private void codeButton_Click(object sender, EventArgs e) { string text = @"function onLoad() { } function update() { }"; if (currentRoom.code != null) text = currentRoom.code; CodeDialog cD = new CodeDialog(newRoomCode, text); cD.Show(); }
private void creditsButton_Click(object sender, EventArgs e) { CodeDialog cD = new CodeDialog(getCredits, currentFile.credits); cD.Show(); }
private void openingButton_Click(object sender, EventArgs e) { CodeDialog cD = new CodeDialog(getOpening, currentFile.opening); cD.Show(); }