private void ShowSingleTask()
 {
     m_currentShownTask               = new FormSingleTask(m_currentTask.Task, 0);
     m_currentShownTask.WindowState   = FormWindowState.Normal;
     m_currentShownTask.StartPosition = FormStartPosition.CenterParent;
     if (m_currentShownTask.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
     }
     m_currentShownTask = null;
 }
Esempio n. 2
0
        private void ShowSingleTask()
        {
            TaskInfoV3_1 task = null;// m_viewModel.GetTaskInfo(m_currentTask.TaskId);

            if (task != null)
            {
                m_currentShownTask               = new FormSingleTask(task, m_currentTask.Progress);
                m_currentShownTask.WindowState   = FormWindowState.Normal;
                m_currentShownTask.StartPosition = FormStartPosition.CenterParent;
                if (m_currentShownTask.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                }
                m_currentShownTask = null;
            }
        }
Esempio n. 3
0
        private void ShowSingleTask()
        {
            TaskInfoV3_1 t = null;

            if (advTree1.SelectedNode.Tag is Tuple <uint, StatusInfoV3_1> )
            {
                t = m_viewModel.GetTaskInfo((advTree1.SelectedNode.Tag as Tuple <uint, StatusInfoV3_1>).Item1);
            }
            if (advTree1.SelectedNode.Tag is TaskInfoV3_1)
            {
                t = advTree1.SelectedNode.Tag as TaskInfoV3_1;
            }
            if (t != null)
            {
                m_currentShownTask               = new FormSingleTask(t);
                m_currentShownTask.WindowState   = FormWindowState.Normal;
                m_currentShownTask.StartPosition = FormStartPosition.CenterParent;
                if (m_currentShownTask.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                }
            }
            m_currentShownTask = null;
        }