示例#1
0
        public ArchiverForm(ITaskLogger taskLogger)
        {
            _taskLogger = taskLogger;
            InitializeComponent();

            var allTasks = _taskLogger.LoadAllTasks();
            var taskGridItems = GetTaskGridItems(allTasks);
            ActiveTaskGridControl.DataSource = taskGridItems;

            var archivedTasks = _taskLogger.LoadArchivedTasks();
            var archiveTaskGridItems = GetTaskGridItems(archivedTasks);
            ArchivedGridControl.DataSource = archiveTaskGridItems;
        }