void uctask_TaskPlay(object sender, EventArgs e)
        {
            ucSingleRealtimeTask uctask = sender as ucSingleRealtimeTask;

            m_currentTask = uctask;

            FormPlayRealtime f = new FormPlayRealtime(m_currentTask.Task);

            f.ShowDialog();
        }
Ejemplo n.º 2
0
        void buttonTaskPlay_Click()
        {
            uint id = 0;

            if (advTree1.SelectedNode.Tag is TaskInfoV3_1)
            {
                id = (advTree1.SelectedNode.Tag as TaskInfoV3_1).TaskId;
            }
            if (id != 0)
            {
                FormPlayRealtime f = new FormPlayRealtime(m_viewModel.GetTaskInfo(id));
                f.ShowDialog();
            }
        }