Ejemplo n.º 1
0
 private void saveTaskToolStripMenuItem_Click(object sender, EventArgs e)
 {
     _currentTask.ObjectList = m_objectsToDraw.ObjectsToDraw;
     numericUpDownCurrentPosition.Value = 0; // reset view then grab a screen shot
     _currentTask.PreviewImage = GetScreenshotFromVisualiser();
     
     
     if (readOnlyPlaybackMode == false)
     {
         TaskFileBrowser taskFileDialog = new TaskFileBrowser(_remote_DataManager, _currentTask);
         taskFileDialog.ShowDialog();
     }
     else
         MessageBox.Show("Cannot moddify the current task.", "Playback mode enabled.", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
   
 }
Ejemplo n.º 2
0
        private void openExistingTaskToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (readOnlyPlaybackMode == false)
            {
                TaskFileBrowser taskFileDialog = new TaskFileBrowser(_remote_DataManager, null);
                if (taskFileDialog.ShowDialog() != DialogResult.Cancel)
                {

                    _currentTask = taskFileDialog.Task;
                    m_objectsToDraw.ObjectsToDraw = _currentTask.ObjectList;
                }

            }
            else
                MessageBox.Show("Cannot moddify the current task.", "Playback mode enabled.", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
        }
Ejemplo n.º 3
0
 private void saveTaskToolStripMenuItem_Click(object sender, EventArgs e)
 {
     _currentTask.ObjectList = m_objectsToDraw.ObjectsToDraw;
     
     if (readOnlyPlaybackMode == false)
     {
         TaskFileBrowser taskFileDialog = new TaskFileBrowser(remote_DataManager, _currentTask);
         taskFileDialog.ShowDialog();
     }
     else
         MessageBox.Show("Cannot moddify the current task.", "Playback mode enabled.", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
   
 }