Пример #1
0
            /// <summary>
            /// Creates, initializes pads and populates the Pads list.
            /// </summary>
            protected virtual void CreatePads()
            {
                Pads.Clear();
                ErrorsPad = new ErrorListPad(Platform.Project);
                Pads.Add(ErrorsPad);
                TasksPad = new TaskListPad(Platform.Project);
                Pads.Add(TasksPad);

                ProjectPad = new ProjectPad(Platform.Project);
                ProjectPad.ItemDoubleClicked      += () => MainForm.ShowEditorFor(ProjectPad.SelectedItem);
                ProjectPad.AddNewItemClicked      += () => AddNewProjectItem();
                ProjectPad.AddExistingItemClicked += () => AddExistingProjectItem();
                ProjectPad.RemoveClicked          += () => RemoveProjectItem(ProjectPad.SelectedItem);
                Pads.Add(ProjectPad);
            }
Пример #2
0
            /// <summary>
            /// Creates, initializes pads and populates the Pads list.
            /// </summary>
            protected virtual void CreatePads()
            {
                Pads.Clear();
                ErrorsPad = new ErrorListPad(Platform.Project);
                Pads.Add(ErrorsPad);
                TasksPad = new TaskListPad(Platform.Project);
                Pads.Add(TasksPad);

                ProjectPad = new ProjectPad(Platform.Project);
                ProjectPad.ItemDoubleClicked += () => MainForm.ShowEditorFor(ProjectPad.SelectedItem);
                ProjectPad.AddNewItemClicked += () => AddNewProjectItem();
                ProjectPad.AddExistingItemClicked += () => AddExistingProjectItem();
                ProjectPad.RemoveClicked += () => RemoveProjectItem(ProjectPad.SelectedItem);
                Pads.Add(ProjectPad);
            }