Ejemplo n.º 1
0
 /// <summary>
 ///   This constructor creates a matching event object for the passed menuEntryEvent
 /// </summary>
 /// <param name = "menuEntryEvent">event menu entry for which we create this event</param>
 /// <param name = "currentTask">current task from which the menu entry was activated</param>
 /// <param name = "control"></param>
 internal RunTimeEvent(MenuEntryEvent menuEntryEvent, Task currentTask, MgControl control, int ctlIdx)
     : base(menuEntryEvent, ctlIdx)
 {
     _task    = currentTask;
     _taskTag = currentTask.getTaskTag();
     Control  = control;
 }
Ejemplo n.º 2
0
        /// <summary>
        ///   set the task
        /// </summary>
        /// <param name = "aTask">- reference to a task</param>
        internal void setTask(Task taskRef)
        {
            _task = taskRef;

            if (_task != null)
            {
                _taskTag = _task.getTaskTag();
            }
            else
            {
                _taskTag = null;
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 ///   a helper method that does some common initialization for some of the constructors
 /// </summary>
 private void init(Task taskRef)
 {
     _task        = taskRef ?? MGDataCollection.Instance.getCurrMGData().getFirstTask();
     _taskTag     = _task == null ? "" : _task.getTaskTag();
     _mprgCreator = null;
 }