//Creates and initializes a task item panel control
        public TaskItemPanelControl(TaskControl taskControl)
        {
            //Initializes task item panel control components
            InitializeComponent();

            //Link with the task control
            Link(taskControl);
        }
Ejemplo n.º 2
0
 //Creates and configures the task control
 protected virtual void InitializeTaskControl()
 {
     taskControl          = new TaskControl(project, taskListControl, false);
     taskControl.Location = new Point(taskListControl.ClientRectangle.Right, MenuStrip.Size.Height);
     taskControl.Size     = new Size(taskControl.Size.Width, ClientSize.Height - MenuStrip.Size.Height);
     taskControl.Anchor   = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Right;
     taskControl.Visible  = false;
     taskControl.Parent   = this;
 }
 //Links the task control and subscribes to events
 private void Link(TaskControl taskControl)
 {
     //Link and subscribe to events
     this.taskControl = taskControl;
     this.taskControl.Resize += OnResize;
 }