Beispiel #1
0
        private void CreateColumn(HttpClientProvider httpClientProvider, Column column)
        {
            var tasks = CommonMethods.SafeRunMethod.WithReturn(() => httpClientProvider.GetDatabaseTaskReader().GetFromColumn(column.BoardId, column.ColumnId));

            if (tasks == null)
            {
                return;
            }

            LabelColumnHeader.Content = column.Header;
            StackPanelTaskControls.Children.Clear();
            foreach (var task in tasks)
            {
                StackPanelTaskControls.Children.Add(CreateTaskControl(httpClientProvider, column, task));
            }
        }
 private void ReloadDataGridTasksItemsSource()
 {
     DataGridTasks.ItemsSource = CommonMethods.SafeRunMethod.WithReturn(() => httpClientProvider.GetDatabaseTaskReader().GetFromBoard(board.BoardId));
 }