void uctask_TaskPlay(object sender, EventArgs e)
        {
            ucSingleHistoryTask uctask = sender as ucSingleHistoryTask;
            //m_currentTask = uctask;

            FormPlayHistoryNew f = new FormPlayHistoryNew(uctask.Task);

            f.ShowDialog();
        }
Exemple #2
0
        void buttonTaskPlay_Click()
        {
            uint id = 0;

            if (advTree1.SelectedNode.Tag is Tuple <uint, StatusInfoV3_1> )
            {
                id = (advTree1.SelectedNode.Tag as Tuple <uint, StatusInfoV3_1>).Item1;
            }
            if (advTree1.SelectedNode.Tag is TaskInfoV3_1)
            {
                id = (advTree1.SelectedNode.Tag as TaskInfoV3_1).TaskId;
            }
            if (id != 0)
            {
                FormPlayHistoryNew f = new FormPlayHistoryNew(m_viewModel.GetTaskInfo(id));
                f.ShowDialog();
            }
        }