private void MenuItemAddTask_OnClick(object sender, RoutedEventArgs e) { var board = GetThisBoard(); CommonMethods.WorkWithTables.Add((task, isReadOnly) => new TaskWindow(httpClientProvider, task, GetUserNames(), GetColumnNames(), board.Name, board.BoardId, isReadOnly), httpClientProvider.GetDatabaseTaskEditor(), () => AddTask?.Invoke(this, default(EventArgs))); }
private void MenuItemAddTask_OnClick(object sender, RoutedEventArgs e) { CommonMethods.WorkWithTables.Add((task, isReadOnly) => new TaskWindow(httpClientProvider, task, GetUserNames(), GetColumnNames(), board.Name, board.BoardId, isReadOnly), httpClientProvider.GetDatabaseTaskEditor(), ReloadDataGridTasksItemsSource); }