Exemplo n.º 1
0
        private void TestFilleArray()
        {
            for( int i = 0; i < 10; i++)
            {
                BaseTask temptask = new BaseTask();
                temptask.Acommand = false;
                temptask.Aemail = false;
                temptask.Anone = true;
                temptask.Apopup = false;
                temptask.Asound = false;

                temptask.Command = null;
                temptask.Creation = DateTime.Now;
                temptask.Summary = "Temp Summary: " + i.ToString();
                temptask.Description = "Temporary task: " + i.ToString();
                temptask.DueDate = "10/10/2008";
                temptask.Email = "*****@*****.**";
                temptask.LastModified = temptask.Creation;
                temptask.Sound = null;
                temptask.Status = "In progress";
                temptask.TaskRank = i;
                temptask.TaskSeverity = SeverityLevel.Critical;
                ListOfTasks.Add( temptask );
            }
        }
Exemplo n.º 2
0
        private void TestFilleArray()
        {
            for (int i = 0; i < 10; i++)
            {
                BaseTask temptask = new BaseTask();
                temptask.Acommand = false;
                temptask.Aemail   = false;
                temptask.Anone    = true;
                temptask.Apopup   = false;
                temptask.Asound   = false;

                temptask.Command      = null;
                temptask.Creation     = DateTime.Now;
                temptask.Summary      = "Temp Summary: " + i.ToString();
                temptask.Description  = "Temporary task: " + i.ToString();
                temptask.DueDate      = "10/10/2008";
                temptask.Email        = "*****@*****.**";
                temptask.LastModified = temptask.Creation;
                temptask.Sound        = null;
                temptask.Status       = "In progress";
                temptask.TaskRank     = i;
                temptask.TaskSeverity = SeverityLevel.Critical;
                ListOfTasks.Add(temptask);
            }
        }
Exemplo n.º 3
0
        //Tasks modification section:
        private void AddTasks_Click(object sender, RoutedEventArgs e)
        {
            BaseTask newtask = new BaseTask();

            newtask.TaskRank = ListOfTasks.Count;

            if (adwclosed == false)
            {
                AddTaskWindow.SetTask(newtask);
                AddTaskWindow.Show();
            }
            else
            {
                if (tawclosed == false)
                {
                    AddTaskWindow = new AddTaskWindow(this, TaskAssistantWindow);
                    AddTaskWindow.SetTask(newtask);
                    AddTaskWindow.Show();
                }
                else
                {
                    TaskAssistantWindow = new XTaskListWindow(this);
                    AddTaskWindow       = new AddTaskWindow(this, TaskAssistantWindow);
                    AddTaskWindow.SetTask(newtask);
                    AddTaskWindow.Show();
                }
            }
            //           TaskAssistantWindow.Show();
        }
Exemplo n.º 4
0
 public AddTaskWindow(XHubWindow pWindow, XTaskListWindow tWindow)
 {
     InitializeComponent();
     ParentWindow   = pWindow;
     TaskListWindow = tWindow;
     CurrentTask    = null;
     LastTaskRank   = 0;
 }
 public AddTaskWindow(XHubWindow pWindow, XTaskListWindow tWindow)
 {
     InitializeComponent();
     ParentWindow = pWindow;
     TaskListWindow = tWindow;
     CurrentTask = null;
     LastTaskRank = 0;            
 }
Exemplo n.º 6
0
 public void SetTask(BaseTask InputTask)
 {
     CurrentTask = InputTask;
     if (CurrentTask != null)
     {
         TRank.SetIntValue(InputTask.TaskRank);
         LastTaskRank = InputTask.TaskRank;
     }
 }
 public void SetTask(BaseTask InputTask)
 {
     CurrentTask = InputTask;
     if (CurrentTask != null)
     {
         TRank.SetIntValue(InputTask.TaskRank);
         LastTaskRank = InputTask.TaskRank;
     }
 }
Exemplo n.º 8
0
 public void SaveTask(BaseTask CurrInput)
 {
     ListOfTasks.Add(CurrInput);
 }
Exemplo n.º 9
0
        int IComparable.CompareTo(object obj)
        {
            BaseTask input = (BaseTask)obj;

            return(taskrank.CompareTo(input.TaskRank));
        }
Exemplo n.º 10
0
 public void SaveTask(BaseTask CurrInput)
 {
     ListOfTasks.Add(CurrInput);
 }
Exemplo n.º 11
0
        //Tasks modification section:
        private void AddTasks_Click(object sender, RoutedEventArgs e)
        {
            BaseTask newtask = new BaseTask();
            newtask.TaskRank = ListOfTasks.Count;

            if (adwclosed == false)
            {
                AddTaskWindow.SetTask(newtask);
                AddTaskWindow.Show();               
            }
            else
            {
                if (tawclosed == false)
                {
                    AddTaskWindow = new AddTaskWindow(this, TaskAssistantWindow);
                    AddTaskWindow.SetTask(newtask);
                    AddTaskWindow.Show();
                }
                else
                {
                    TaskAssistantWindow = new XTaskListWindow(this);
                    AddTaskWindow = new AddTaskWindow(this, TaskAssistantWindow);
                    AddTaskWindow.SetTask(newtask);
                    AddTaskWindow.Show();
                }
            }
 //           TaskAssistantWindow.Show();
        }