Ejemplo n.º 1
0
 //Creates and configures the task list control
 private void InitializeTaskListControl()
 {
     taskListControl          = new TaskListControl(project);
     taskListControl.Location = new Point(0, MenuStrip.ClientRectangle.Bottom);
     taskListControl.Size     = new Size(taskListControl.Size.Width, ClientSize.Height - MenuStrip.Size.Height);
     taskListControl.Anchor   = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Bottom;
     taskListControl.Parent   = this;
 }
Ejemplo n.º 2
0
        //Initializes and sets up the task control
        public TaskControl(Project project, TaskListControl taskListControl, bool insideThemedWindow)
        {
            //Initialize the task control
            InitializeComponent();

            //Link with the specified project
            this.project = project;

            //Link with the specified task list control
            this.taskListControl = taskListControl;
            this.taskListControl.OnTaskSelected += ReloadTask;

            //Initialize flags
            this.insideThemedWindow = insideThemedWindow;
        }