Esempio n. 1
0
        /// <summary>
        /// Handles the next button click event on form2 class
        /// </summary>
        public void Form2btnNext()
        {
            // Update the task entry
            TaskLog.MakeTaskEntry(State.TaskId, State.NavigationGraph, State.CurrentView, DateTime.Now);

            // Navigate to the next view
            State.NavigateValue = "next";
            Navigate();
        }
Esempio n. 2
0
        /// <summary>
        /// Handles the next button click event on form5 class
        /// </summary>
        /// <param name="someState">some info, wich will be passed to the next navigation graph</param>
        public void Form5btnNext(string someState)
        {
            // Update the task entry
            TaskLog.MakeTaskEntry(State.TaskId, State.NavigationGraph, State.CurrentView, DateTime.Now);

            SuspendTask();

            // Navigate to the previous navigation graph
            OnStartTask(MyState.PreviousNavGraph,
                        new TaskArgumentsHolder(State.TaskId, State.NavigationGraph, someState),
                        new Task(MyState.PreviousTaskID));
        }
Esempio n. 3
0
        /// <summary>
        /// Handles the next button click event on form4 class
        /// </summary>
        /// <param name="someState">some info wich will be store into the state</param>
        public void Form4btnNext(string someState)
        {
            // Update the task entry
            TaskLog.MakeTaskEntry(State.TaskId, State.NavigationGraph, State.CurrentView, DateTime.Now);

            // Store the info into the state
            State["Form4btnNext"] = someState;

            // Navigate to the next view
            State.NavigateValue = "next";
            Navigate();
        }
Esempio n. 4
0
        private void btnLogon_Click_1(object sender, System.EventArgs e)
        {
            DemoTask task = new DemoTask();
            string   nav  = "navA";

            //  set first nav + view, since we are starting fresh
            _entry = new TaskLogEntry(Guid.Empty, "navA", "Form1", DateTime.Now);

            //  save this entry
            TaskLog.MakeTaskEntry(_entry);

            // start a new task
            UIPManager.StartNavigationTask(nav, task);
        }
Esempio n. 5
0
        /// <summary>
        /// Handles the next button click event on form3 class
        /// </summary>
        public void Form3btnNext()
        {
            // Update the task entry
            TaskLog.MakeTaskEntry(State.TaskId, State.NavigationGraph, State.CurrentView, DateTime.Now);

            if (MyState.PreviousNavGraph.Length != 0 && MyState.PreviousTaskID != Guid.Empty)
            {
                OnStartTask(MyState.PreviousNavGraph, new TaskArgumentsHolder(MyState.TaskId, "navA", "From A"), new Task(MyState.PreviousTaskID));     // Continue the existing task
            }
            else
            {
                OnStartTask("navB", new TaskArgumentsHolder(MyState.TaskId, "navA", "From A"), null);     // Start a new task
            }
        }
Esempio n. 6
0
 ///<summary>Create a new task identifier</summary>
 ///<param name="taskId">task identifier</param>
 public void Create(Guid taskId)
 {
     TaskLog.MakeTaskEntry(taskId);
 }