| | 1 | | using System; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using System.Collections.ObjectModel; |
| | 4 | | using System.ComponentModel; |
| | 5 | | using System.Runtime.CompilerServices; |
| | 6 | | using System.Text; |
| | 7 | |
|
| | 8 | | namespace MUNity.Models.Resolution |
| | 9 | | { |
| | 10 | |
|
| | 11 | | /// <summary> |
| | 12 | | /// An operative Paragraph is a paragraph inside the operative section. You can create amendments for this type of |
| | 13 | | /// paragraph and they can also have child paragraphs. |
| | 14 | | /// </summary> |
| | 15 | | public class OperativeParagraph |
| | 16 | | { |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// The Id of the operativee Paragraph. |
| | 20 | | /// </summary> |
| 0 | 21 | | public string OperativeParagraphId { get; set; } |
| | 22 | |
|
| | 23 | | /// <summary> |
| | 24 | | /// The name of the paragraph if you want to identify it by a given name. |
| | 25 | | /// </summary> |
| 0 | 26 | | public string Name { get; set; } |
| | 27 | |
|
| | 28 | | /// <summary> |
| | 29 | | /// Is the paragraph marked as locked. This will not effect the logic you can still submit amendments |
| | 30 | | /// or apply amendments to it. This may change in future implementations! |
| | 31 | | /// </summary> |
| 0 | 32 | | public bool IsLocked { get; set; } |
| | 33 | |
|
| | 34 | | /// <summary> |
| | 35 | | /// Virtual is true when the Operative Paragraph comes from an AddAmendment and doesn't really count as an |
| | 36 | | /// paragraph or if it is from a move amendment and is the paragraph where the orignal should be moved to. |
| | 37 | | /// </summary> |
| 0 | 38 | | public bool IsVirtual { get; set; } |
| | 39 | |
|
| | 40 | |
|
| | 41 | | /// <summary> |
| | 42 | | /// The text of the operative Paragraph. |
| | 43 | | /// </summary> |
| 0 | 44 | | public string Text { get; set; } |
| | 45 | |
|
| | 46 | | /// <summary> |
| | 47 | | /// Is the operative Paragraph visible inside the views. |
| | 48 | | /// </summary> |
| 0 | 49 | | public bool Visible { get; set; } |
| | 50 | |
|
| | 51 | | /// <summary> |
| | 52 | | /// Is the operative paragraph marked as corrected. Note that this |
| | 53 | | /// does not interact with any form of logic, if the Text is changed it will |
| | 54 | | /// still be marked as corrected. |
| | 55 | | /// </summary> |
| 0 | 56 | | public bool Corrected { get; set; } |
| | 57 | |
|
| | 58 | | /// <summary> |
| | 59 | | /// Child paragraphs of this operative paragraph. |
| | 60 | | /// </summary> |
| 0 | 61 | | public List<OperativeParagraph> Children { get; set; } |
| | 62 | |
|
| 0 | 63 | | public string Comment { get; set; } |
| | 64 | |
|
| | 65 | | /// <summary> |
| | 66 | | /// Creates a new Operative Paragraph and will give it an id. |
| | 67 | | /// </summary> |
| | 68 | | /// <param name="text"></param> |
| 0 | 69 | | public OperativeParagraph(string text = "") |
| 0 | 70 | | { |
| 0 | 71 | | this.Text = text; |
| 0 | 72 | | this.OperativeParagraphId = Guid.NewGuid().ToString(); |
| 0 | 73 | | this.Children = new List<OperativeParagraph>(); |
| 0 | 74 | | } |
| | 75 | |
|
| 0 | 76 | | public OperativeParagraph() |
| 0 | 77 | | { |
| 0 | 78 | | this.OperativeParagraphId = Guid.NewGuid().ToString(); |
| 0 | 79 | | this.Children = new List<OperativeParagraph>(); |
| 0 | 80 | | } |
| | 81 | | } |
| | 82 | | } |