ソースを参照

Made JobStagesGrid a DynamicDataGrid

Kenric Nugteren 1 週間 前
コミット
f90d5884de
1 ファイル変更1 行追加24 行削除
  1. 1 24
      prs.desktop/Panels/Jobs/Stages/JobStagesGrid.cs

+ 1 - 24
prs.desktop/Panels/Jobs/Stages/JobStagesGrid.cs

@@ -9,31 +9,8 @@ using InABox.DynamicGrid;
 
 namespace PRSDesktop;
 
-public class JobStagesGrid : DynamicGrid<JobStage>
+public class JobStagesGrid : DynamicDataGrid<JobStage>
 {
-
-    public override void DeleteItems(params CoreRow[] rows)
-    {
-        foreach (var row in rows) new Client<JobStage>().Delete(row.ToObject<JobStage>(), "Deleting Job Stage");
-    }
-
-    public override JobStage LoadItem(CoreRow row)
-    {
-        return row.ToObject<JobStage>();
-    }
-
-    protected override void Reload(
-    	Filters<JobStage> criteria, Columns<JobStage> columns, ref SortOrder<JobStage>? sort,
-    	CancellationToken token, Action<CoreTable?, Exception?> action)
-    {
-        new Client<JobStage>().Query(criteria.Combine(), columns, sort, CoreRange.All, action);
-    }
-
-    public override void SaveItem(JobStage item)
-    {
-        new Client<JobStage>().Save(item, ""); //, (o, e) => { });
-    }
-
     protected override void DoValidate(JobStage[] items, List<string> errors)
     {
         base.DoValidate(items, errors);