Esempio n. 1
0
        private void scriptCreateMI_Click(object sender, EventArgs e)
        {
            var input = new InputMessageBox();

            if (input.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            InvokeCreateScript(this, new WorkspaceEventArgs(input.Input));
        }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
        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));
        }