Esempio n. 1
0
        public TaskListPad()
        {
            instance                     = this;
            this.displayedTokens         = new Dictionary <string, bool>();
            TaskService.Cleared         += TaskServiceCleared;
            TaskService.Added           += TaskServiceAdded;
            TaskService.Removed         += TaskServiceRemoved;
            TaskService.InUpdateChanged += TaskServiceInUpdateChanged;

            this.tasks = new ObservableCollection <SDTask>(TaskService.CommentTasks);

            InitializePadContent();

            SD.Workbench.ActiveViewContentChanged += WorkbenchActiveViewContentChanged;

            if (SD.Workbench.ActiveViewContent != null)
            {
                UpdateItems();
                WorkbenchActiveViewContentChanged(null, null);
            }

            SD.ProjectService.SolutionOpened        += OnSolutionOpen;
            SD.ProjectService.SolutionClosed        += OnSolutionClosed;
            SD.ProjectService.CurrentProjectChanged += ProjectServiceCurrentProjectChanged;

            this.isInitialized = true;
        }
Esempio n. 2
0
        public TaskListPad()
        {
            instance             = this;
            this.displayedTokens = new Dictionary <string, bool>();

            RedrawContent();

            InitializeToolStrip();

            TaskService.Cleared         += new EventHandler(TaskServiceCleared);
            TaskService.Added           += new TaskEventHandler(TaskServiceAdded);
            TaskService.Removed         += new TaskEventHandler(TaskServiceRemoved);
            TaskService.InUpdateChanged += new EventHandler(TaskServiceInUpdateChanged);

            WorkbenchSingleton.Workbench.ActiveViewContentChanged += new EventHandler(WorkbenchActiveViewContentChanged);

            if (WorkbenchSingleton.Workbench.ActiveViewContent != null)
            {
                UpdateItems();

                if (WorkbenchSingleton.Workbench.ActiveViewContent.Control is SharpDevelopTextAreaControl)
                {
                    SharpDevelopTextAreaControl ctrl = WorkbenchSingleton.Workbench.ActiveViewContent.Control as SharpDevelopTextAreaControl;

                    ctrl.ActiveTextAreaControl.Caret.PositionChanged += new EventHandler(CaretPositionChanged);
                }
            }

            ProjectService.SolutionLoaded        += OnSolutionOpen;
            ProjectService.SolutionClosed        += OnSolutionClosed;
            ProjectService.CurrentProjectChanged += ProjectServiceCurrentProjectChanged;

            this.isInitialized = true;
        }
Esempio n. 3
0
		public TaskListPad()
		{
			instance = this;
			this.displayedTokens = new Dictionary<string, bool>();
			TaskService.Cleared += TaskServiceCleared;
			TaskService.Added   += TaskServiceAdded;
			TaskService.Removed += TaskServiceRemoved;
			TaskService.InUpdateChanged += TaskServiceInUpdateChanged;
			
			this.tasks = new ObservableCollection<SDTask>(TaskService.CommentTasks);
			
			InitializePadContent();
			
			SD.Workbench.ActiveViewContentChanged += WorkbenchActiveViewContentChanged;
			
			if (SD.Workbench.ActiveViewContent != null) {
				UpdateItems();
				WorkbenchActiveViewContentChanged(null, null);
			}
			
			SD.ProjectService.SolutionOpened += OnSolutionOpen;
			SD.ProjectService.SolutionClosed += OnSolutionClosed;
			SD.ProjectService.CurrentProjectChanged += ProjectServiceCurrentProjectChanged;
			
			this.isInitialized = true;
		}
Esempio n. 4
0
        public TaskListPad()
        {
            instance             = this;
            this.displayedTokens = new Dictionary <string, bool>();

            RedrawContent();
            ResourceService.LanguageChanged += delegate { RedrawContent(); };

            InitializeToolStrip();

            TaskService.Cleared         += new EventHandler(TaskServiceCleared);
            TaskService.Added           += new TaskEventHandler(TaskServiceAdded);
            TaskService.Removed         += new TaskEventHandler(TaskServiceRemoved);
            TaskService.InUpdateChanged += new EventHandler(TaskServiceInUpdateChanged);

            WorkbenchSingleton.Workbench.ActiveViewContentChanged += new EventHandler(WorkbenchActiveViewContentChanged);

            if (WorkbenchSingleton.Workbench.ActiveViewContent != null)
            {
                UpdateItems();
                WorkbenchActiveViewContentChanged(null, null);
            }

            ProjectService.SolutionLoaded        += OnSolutionOpen;
            ProjectService.SolutionClosed        += OnSolutionClosed;
            ProjectService.CurrentProjectChanged += ProjectServiceCurrentProjectChanged;

            this.isInitialized = true;
        }
Esempio n. 5
0
		public TaskListPad()
		{
			instance = this;
			this.displayedTokens = new Dictionary<string, bool>();
			
			RedrawContent();
			ResourceService.LanguageChanged += delegate { RedrawContent(); };
			
			InitializeToolStrip();

			TaskService.Cleared += new EventHandler(TaskServiceCleared);
			TaskService.Added   += new TaskEventHandler(TaskServiceAdded);
			TaskService.Removed += new TaskEventHandler(TaskServiceRemoved);
			TaskService.InUpdateChanged += new EventHandler(TaskServiceInUpdateChanged);
			
			WorkbenchSingleton.Workbench.ActiveViewContentChanged += new EventHandler(WorkbenchActiveViewContentChanged);
			
			if (WorkbenchSingleton.Workbench.ActiveViewContent != null) {
				UpdateItems();
				WorkbenchActiveViewContentChanged(null, null);
			}
			
			ProjectService.SolutionLoaded += OnSolutionOpen;
			ProjectService.SolutionClosed += OnSolutionClosed;
			ProjectService.CurrentProjectChanged += ProjectServiceCurrentProjectChanged;
			
			this.isInitialized = true;
		}
Esempio n. 6
0
		public TaskListPad()
		{
			instance = this;
			this.displayedTokens = new Dictionary<string, bool>();
			
			RedrawContent();
			
			InitializeToolStrip();

			TaskService.Cleared += new EventHandler(TaskServiceCleared);
			TaskService.Added   += new TaskEventHandler(TaskServiceAdded);
			TaskService.Removed += new TaskEventHandler(TaskServiceRemoved);
			TaskService.InUpdateChanged += new EventHandler(TaskServiceInUpdateChanged);
			
			WorkbenchSingleton.Workbench.ActiveViewContentChanged += new EventHandler(WorkbenchActiveViewContentChanged);
			
			if (WorkbenchSingleton.Workbench.ActiveViewContent != null) {
				UpdateItems();
				
				if (WorkbenchSingleton.Workbench.ActiveViewContent.Control is SharpDevelopTextAreaControl) {
					SharpDevelopTextAreaControl ctrl = WorkbenchSingleton.Workbench.ActiveViewContent.Control as SharpDevelopTextAreaControl;
					
					ctrl.ActiveTextAreaControl.Caret.PositionChanged += new EventHandler(CaretPositionChanged);
				}
			}
			
			ProjectService.SolutionLoaded += OnSolutionOpen;
			ProjectService.SolutionClosed += OnSolutionClosed;
			ProjectService.CurrentProjectChanged += ProjectServiceCurrentProjectChanged;
			
			this.isInitialized = true;
		}