private void toolStripMenuItemCreateEntity_Click(object sender, EventArgs e) { TextInputDialog dialog = new TextInputDialog("Name for the type"); dialog.ShowDialog(this); if (!dialog.isInputOk()) return; String name = dialog.getInputText() + ".type"; rootView.getCurrentEditor().instance.createNewEntityType(name); }
private void sendCommandToolStripMenuItem_Click(object sender, EventArgs e) { TextInputDialog dialog = new TextInputDialog("Command to send"); dialog.ShowDialog(this); if (!dialog.isInputOk()) return; String command = dialog.getInputText(); getCurrentEditor().instance.callCCommand(command); }