//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(); }
public AddTaskWindow(XHubWindow pWindow, XTaskListWindow tWindow) { InitializeComponent(); ParentWindow = pWindow; TaskListWindow = tWindow; CurrentTask = null; LastTaskRank = 0; }
public XHubWindow() { InitializeComponent(); TaskAssistantWindow = new XTaskListWindow(this); AddTaskWindow = new AddTaskWindow(this, TaskAssistantWindow); ListOfTasks = new ArrayList(); tawclosed = false; adwclosed = false; }
public XHubWindow() { InitializeComponent(); TaskAssistantWindow = new XTaskListWindow(this); AddTaskWindow = new AddTaskWindow(this,TaskAssistantWindow); ListOfTasks = new ArrayList(); tawclosed = false; adwclosed = false; }