private void scriptCreateMI_Click(object sender, EventArgs e) { var input = new InputMessageBox(); if (input.ShowDialog() != DialogResult.OK) { return; } InvokeCreateScript(this, new WorkspaceEventArgs(input.Input)); }
private void scriptRenameMI_Click(object sender, EventArgs e) { var script = lstMovementScripts.SelectedItem as MovementScript; if (script == null) { return; } var input = new InputMessageBox() { Input = script.Name }; if (input.ShowDialog() != DialogResult.OK) { return; } InvokeScriptRename(this, new WorkspaceEventArgs(input.Input, lstMovementScripts.SelectedIndex)); }
private void renameWorkspace_Click(object sender, EventArgs e) { var workspace = lstWorkspaces.SelectedItem as RobotWorkspace; if (workspace == null) { return; } var input = new InputMessageBox() { Input = workspace.Name }; if (input.ShowDialog() != DialogResult.OK) { return; } InvokeRenameWorkspace(this, new WorkspaceEventArgs(input.Input, lstWorkspaces.SelectedIndex)); }