| | | 1 | | using System; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using System.Text; |
| | | 4 | | |
| | | 5 | | namespace MUNity.Models.Resolution.EventArguments |
| | | 6 | | { |
| | | 7 | | /// <summary> |
| | | 8 | | /// Event arguments that are called, when the resolution itself has changed in |
| | | 9 | | /// extreme. Or without a possible track. |
| | | 10 | | /// </summary> |
| | | 11 | | public class ResolutionChangedArgs : EventArgs |
| | | 12 | | { |
| | | 13 | | /// <summary> |
| | | 14 | | /// The transaction key that is given to this change |
| | | 15 | | /// </summary> |
| | | 16 | | public string Tan { get; set; } |
| | | 17 | | |
| | | 18 | | /// <summary> |
| | | 19 | | /// The new Resolution object with all the changes. |
| | | 20 | | /// </summary> |
| | | 21 | | public Resolution Resolution { get; set; } |
| | | 22 | | |
| | | 23 | | public ResolutionChangedArgs(string tan, Resolution resolution) |
| | | 24 | | { |
| | | 25 | | this.Tan = tan; |
| | | 26 | | this.Resolution = resolution; |
| | | 27 | | } |
| | | 28 | | } |
| | | 29 | | |
| | | 30 | | public abstract class ResolutionEventArgs : EventArgs |
| | | 31 | | { |
| | | 32 | | public string Tan { get; set; } |
| | | 33 | | |
| | | 34 | | public string ResolutionId { get; set; } |
| | | 35 | | } |
| | | 36 | | |
| | | 37 | | public class PreambleParagraphChangedArgs : ResolutionEventArgs |
| | | 38 | | { |
| | | 39 | | |
| | | 40 | | public PreambleParagraph Paragraph { get; set; } |
| | | 41 | | |
| | | 42 | | public PreambleParagraphChangedArgs(string tan, string resolutionId, PreambleParagraph paragraph) |
| | | 43 | | { |
| | | 44 | | Tan = tan; |
| | | 45 | | ResolutionId = resolutionId; |
| | | 46 | | Paragraph = paragraph; |
| | | 47 | | } |
| | | 48 | | } |
| | | 49 | | |
| | | 50 | | public class OperativeParagraphChangedEventArgs : ResolutionEventArgs |
| | | 51 | | { |
| | | 52 | | |
| | | 53 | | public OperativeParagraph Paragraph { get; set; } |
| | | 54 | | |
| | | 55 | | public OperativeParagraphChangedEventArgs (string tan, string resolutionId, OperativeParagraph paragraph) |
| | | 56 | | { |
| | | 57 | | Tan = tan; |
| | | 58 | | ResolutionId = resolutionId; |
| | | 59 | | Paragraph = paragraph; |
| | | 60 | | } |
| | | 61 | | |
| | | 62 | | public OperativeParagraphChangedEventArgs(string resolutionId, OperativeParagraph paragraph) |
| | | 63 | | { |
| | | 64 | | this.ResolutionId = resolutionId; |
| | | 65 | | this.Paragraph = paragraph; |
| | | 66 | | } |
| | | 67 | | |
| | | 68 | | public OperativeParagraphChangedEventArgs() |
| | | 69 | | { |
| | | 70 | | |
| | | 71 | | } |
| | | 72 | | } |
| | | 73 | | |
| | | 74 | | public class AmendmentActivatedChangedEventArgs : ResolutionEventArgs |
| | | 75 | | { |
| | | 76 | | |
| | | 77 | | public string AmendmentId { get; set; } |
| | | 78 | | |
| | | 79 | | public bool Activated { get; set; } |
| | | 80 | | } |
| | | 81 | | |
| | | 82 | | public class PreambleParagraphTextChangedEventArgs : ResolutionEventArgs |
| | | 83 | | { |
| | | 84 | | public string ParagraphId { get; set; } |
| | | 85 | | |
| | | 86 | | public string Text { get; set; } |
| | | 87 | | |
| | | 88 | | public PreambleParagraphTextChangedEventArgs(string resolutionId, string paragraphId, string text) |
| | | 89 | | { |
| | | 90 | | this.ResolutionId = resolutionId; |
| | | 91 | | this.ParagraphId = paragraphId; |
| | | 92 | | this.Text = text; |
| | | 93 | | } |
| | | 94 | | |
| | | 95 | | public PreambleParagraphTextChangedEventArgs() |
| | | 96 | | { |
| | | 97 | | |
| | | 98 | | } |
| | | 99 | | } |
| | | 100 | | |
| | | 101 | | public class OperativeParagraphTextChangedEventArgs : ResolutionEventArgs |
| | | 102 | | { |
| | | 103 | | |
| | | 104 | | public string ParagraphId { get; set; } |
| | | 105 | | |
| | | 106 | | public string Text { get; set; } |
| | | 107 | | |
| | | 108 | | public OperativeParagraphTextChangedEventArgs() |
| | | 109 | | { |
| | | 110 | | |
| | | 111 | | } |
| | | 112 | | |
| | | 113 | | public OperativeParagraphTextChangedEventArgs(string resolutionId, string paragraphId, string text) |
| | | 114 | | { |
| | | 115 | | this.ResolutionId = resolutionId; |
| | | 116 | | this.ParagraphId = paragraphId; |
| | | 117 | | this.Text = text; |
| | | 118 | | } |
| | | 119 | | } |
| | | 120 | | |
| | | 121 | | public class PreambleParagraphAddedEventArgs : ResolutionEventArgs |
| | | 122 | | { |
| | | 123 | | |
| | | 124 | | public PreambleParagraph Paragraph { get; set; } |
| | | 125 | | |
| | | 126 | | /// <summary> |
| | | 127 | | /// The order of all preamble paragraphs including this new one to check |
| | | 128 | | /// if they are all sill in sync. |
| | | 129 | | /// </summary> |
| | | 130 | | public List<string> ParagraphOrder { get; set; } |
| | | 131 | | |
| | | 132 | | public PreambleParagraphAddedEventArgs(string resolutionId, PreambleParagraph paragraph) |
| | | 133 | | { |
| | | 134 | | this.ResolutionId = resolutionId; |
| | | 135 | | this.Paragraph = paragraph; |
| | | 136 | | } |
| | | 137 | | } |
| | | 138 | | |
| | | 139 | | public class OperativeParagraphAddedEventArgs : ResolutionEventArgs |
| | | 140 | | { |
| | | 141 | | public OperativeParagraph Paragraph { get; set; } |
| | | 142 | | |
| | | 143 | | public OperativeParagraphAddedEventArgs(string resolutionId, OperativeParagraph paragraph) |
| | | 144 | | { |
| | | 145 | | this.ResolutionId = resolutionId; |
| | | 146 | | this.Paragraph = paragraph; |
| | | 147 | | } |
| | | 148 | | } |
| | | 149 | | |
| | | 150 | | public class HeaderStringPropChangedEventArgs : ResolutionEventArgs |
| | | 151 | | { |
| | | 152 | | public string Text { get; set; } |
| | | 153 | | |
| | | 154 | | public HeaderStringPropChangedEventArgs(string resolutionId, string text) |
| | | 155 | | { |
| | | 156 | | this.ResolutionId = resolutionId; |
| | | 157 | | this.Text = text; |
| | | 158 | | } |
| | | 159 | | } |
| | | 160 | | |
| | | 161 | | public class PreambleParagraphCommentTextChangedEventArgs : ResolutionEventArgs |
| | | 162 | | { |
| | | 163 | | public string PreambleParagraphId { get; set; } |
| | | 164 | | |
| | | 165 | | public string CommentId { get; set; } |
| | | 166 | | |
| | | 167 | | public string Text { get; set; } |
| | | 168 | | |
| | | 169 | | public PreambleParagraphCommentTextChangedEventArgs(string resolutionId, string preambleParagraphId, string comm |
| | | 170 | | { |
| | | 171 | | this.ResolutionId = resolutionId; |
| | | 172 | | this.PreambleParagraphId = preambleParagraphId; |
| | | 173 | | this.CommentId = commentId; |
| | | 174 | | this.Text = text; |
| | | 175 | | } |
| | | 176 | | } |
| | | 177 | | |
| | | 178 | | public class PreambleParagraphRemovedEventArgs : ResolutionEventArgs |
| | | 179 | | { |
| | 0 | 180 | | public string PreambleParagraphId { get; set; } |
| | | 181 | | |
| | 0 | 182 | | public PreambleParagraphRemovedEventArgs(string resolutionId, string preambleParagraphId) |
| | 0 | 183 | | { |
| | 0 | 184 | | this.ResolutionId = resolutionId; |
| | 0 | 185 | | this.PreambleParagraphId = preambleParagraphId; |
| | 0 | 186 | | } |
| | | 187 | | |
| | 0 | 188 | | public PreambleParagraphRemovedEventArgs() |
| | 0 | 189 | | { |
| | | 190 | | |
| | 0 | 191 | | } |
| | | 192 | | } |
| | | 193 | | |
| | | 194 | | public class OperativeParagraphRemovedEventArgs : ResolutionEventArgs |
| | | 195 | | { |
| | | 196 | | public string OperativeParagraphId { get; set; } |
| | | 197 | | |
| | | 198 | | public OperativeParagraphRemovedEventArgs() |
| | | 199 | | { |
| | | 200 | | |
| | | 201 | | } |
| | | 202 | | |
| | | 203 | | public OperativeParagraphRemovedEventArgs(string resolutionId, string operativeParagraphId) |
| | | 204 | | { |
| | | 205 | | ResolutionId = resolutionId; |
| | | 206 | | OperativeParagraphId = operativeParagraphId; |
| | | 207 | | } |
| | | 208 | | } |
| | | 209 | | |
| | | 210 | | public class OperativeSectionChangedEventArgs : ResolutionEventArgs |
| | | 211 | | { |
| | | 212 | | public OperativeSection Section { get; set; } |
| | | 213 | | |
| | | 214 | | public OperativeSectionChangedEventArgs(string resolutionId, OperativeSection section) |
| | | 215 | | { |
| | | 216 | | this.ResolutionId = resolutionId; |
| | | 217 | | this.Section = section; |
| | | 218 | | } |
| | | 219 | | } |
| | | 220 | | |
| | | 221 | | public class AddAmendmentCreatedEventArgs : ResolutionEventArgs |
| | | 222 | | { |
| | | 223 | | public AddAmendment Amendment { get; set; } |
| | | 224 | | |
| | | 225 | | public OperativeParagraph VirtualParagraph { get; set; } |
| | | 226 | | |
| | | 227 | | public int VirtualParagraphIndex { get; set; } |
| | | 228 | | } |
| | | 229 | | |
| | | 230 | | public class MoveAmendmentCreatedEventArgs : ResolutionEventArgs |
| | | 231 | | { |
| | | 232 | | public MoveAmendment Amendment { get; set; } |
| | | 233 | | |
| | | 234 | | public OperativeParagraph VirtualParagraph { get; set; } |
| | | 235 | | |
| | | 236 | | public int VirtualParagraphIndex { get; set; } |
| | | 237 | | } |
| | | 238 | | |
| | | 239 | | public class PublicModeChangedEventArgs : ResolutionEventArgs |
| | | 240 | | { |
| | | 241 | | public bool AllowPublicEdit { get; set; } |
| | | 242 | | } |
| | | 243 | | |
| | | 244 | | } |