|
1 | | -using System; |
2 | | -using System.Collections; |
3 | | -using System.Collections.Generic; |
4 | | -using System.Collections.Specialized; |
5 | | -using System.Linq; |
6 | | -using System.Linq.Expressions; |
7 | | -using System.Reflection; |
8 | | -using System.Web; |
9 | | -#if NETFRAMEWORK |
10 | | -using System.Web.Helpers; |
11 | | -using System.Web.Mvc; |
12 | | -using System.Web.Routing; |
13 | | -using IHtmlHelper = System.Web.Mvc.HtmlHelper; |
14 | | -using ActionContext = System.Web.Mvc.ControllerContext; |
15 | | -#else |
16 | | -using Microsoft.AspNetCore.Html; |
17 | | -using Microsoft.AspNetCore.Mvc; |
18 | | -using Microsoft.AspNetCore.Mvc.Rendering; |
19 | | -using Microsoft.AspNetCore.Mvc.ViewFeatures; |
20 | | -using Microsoft.AspNetCore.Routing; |
21 | | -#endif |
| 1 | +namespace Griddly.Mvc; |
22 | 2 |
|
23 | | -namespace Griddly.Mvc |
| 3 | +public class HandleCustomExportArgs |
24 | 4 | { |
25 | | - public class HandleCustomExportArgs |
| 5 | + public HandleCustomExportArgs(GriddlyResult result, NameValueCollection formValues, ActionContext context) |
26 | 6 | { |
27 | | - public HandleCustomExportArgs(GriddlyResult result, NameValueCollection formValues, ActionContext context) |
28 | | - { |
29 | | - Result = result; |
30 | | - FormValues = formValues; |
31 | | - ActionContext = context; |
32 | | - } |
33 | | - |
34 | | - public GriddlyResult Result { get; set; } |
35 | | - public NameValueCollection FormValues { get; set; } |
36 | | - public ActionContext ActionContext { get; set; } |
| 7 | + Result = result; |
| 8 | + FormValues = formValues; |
| 9 | + ActionContext = context; |
37 | 10 | } |
38 | | - public class BeforeRenderArgs |
39 | | - { |
40 | | - public BeforeRenderArgs(GriddlySettings settings, GriddlyResultPage resultPage, IHtmlHelper html, bool isFirstRender) |
41 | | - { |
42 | | - Settings = settings; |
43 | | - ResultPage = resultPage; |
44 | | - Html = html; |
45 | | - IsFirstRender = isFirstRender; |
46 | | - } |
47 | 11 |
|
48 | | - public GriddlySettings Settings { get; set; } |
49 | | - public GriddlyResultPage ResultPage { get; set; } |
50 | | - public IHtmlHelper Html { get; set; } |
51 | | - public bool IsFirstRender { get; set; } |
52 | | - } |
53 | | - public class GriddlyResultExecutingArgs |
| 12 | + public GriddlyResult Result { get; set; } |
| 13 | + public NameValueCollection FormValues { get; set; } |
| 14 | + public ActionContext ActionContext { get; set; } |
| 15 | +} |
| 16 | +public class BeforeRenderArgs |
| 17 | +{ |
| 18 | + public BeforeRenderArgs(GriddlySettings settings, GriddlyResultPage resultPage, IHtmlHelper html, bool isFirstRender) |
54 | 19 | { |
55 | | - public GriddlyResultExecutingArgs(GriddlyResult result, GriddlySettings settings, ActionContext context) |
56 | | - { |
57 | | - Result = result; |
58 | | - Settings = settings; |
59 | | - ActionContext = context; |
60 | | - } |
61 | | - |
62 | | - public GriddlyResult Result { get; } |
63 | | - public GriddlySettings Settings { get; set; } |
64 | | - public ActionContext ActionContext { get; set; } |
| 20 | + Settings = settings; |
| 21 | + ResultPage = resultPage; |
| 22 | + Html = html; |
| 23 | + IsFirstRender = isFirstRender; |
65 | 24 | } |
66 | | - public class GriddlyPageExecutingArgs |
| 25 | + |
| 26 | + public GriddlySettings Settings { get; set; } |
| 27 | + public GriddlyResultPage ResultPage { get; set; } |
| 28 | + public IHtmlHelper Html { get; set; } |
| 29 | + public bool IsFirstRender { get; set; } |
| 30 | +} |
| 31 | +public class GriddlyResultExecutingArgs |
| 32 | +{ |
| 33 | + public GriddlyResultExecutingArgs(GriddlyResult result, GriddlySettings settings, ActionContext context) |
67 | 34 | { |
68 | | - public GriddlyPageExecutingArgs(GriddlyResult result, GriddlySettings settings, GriddlyContext griddlyContext, ActionContext actionContext) |
69 | | - { |
70 | | - Result = result; |
71 | | - Settings = settings; |
72 | | - GriddlyContext = griddlyContext; |
73 | | - ActionContext = actionContext; |
74 | | - } |
| 35 | + Result = result; |
| 36 | + Settings = settings; |
| 37 | + ActionContext = context; |
| 38 | + } |
75 | 39 |
|
76 | | - public GriddlyResult Result { get; } |
77 | | - public GriddlySettings Settings { get; set; } |
78 | | - public GriddlyContext GriddlyContext { get; set; } |
79 | | - public ActionContext ActionContext { get; set; } |
| 40 | + public GriddlyResult Result { get; } |
| 41 | + public GriddlySettings Settings { get; set; } |
| 42 | + public ActionContext ActionContext { get; set; } |
| 43 | +} |
| 44 | +public class GriddlyPageExecutingArgs |
| 45 | +{ |
| 46 | + public GriddlyPageExecutingArgs(GriddlyResult result, GriddlySettings settings, GriddlyContext griddlyContext, ActionContext actionContext) |
| 47 | + { |
| 48 | + Result = result; |
| 49 | + Settings = settings; |
| 50 | + GriddlyContext = griddlyContext; |
| 51 | + ActionContext = actionContext; |
80 | 52 | } |
| 53 | + |
| 54 | + public GriddlyResult Result { get; } |
| 55 | + public GriddlySettings Settings { get; set; } |
| 56 | + public GriddlyContext GriddlyContext { get; set; } |
| 57 | + public ActionContext ActionContext { get; set; } |
81 | 58 | } |
0 commit comments