개정판 2b0fba39
issue #0000
- 작업 comment UI 변경
Change-Id: I32f9047662cba30bbf7b8a0a19885a16af08d188
ID2.Manager/ID2.Manager/Controls/IssueImagesAndAnswer.Designer.cs | ||
---|---|---|
78 | 78 |
this.LayoutImages.Controls.Add(this.label1, 0, 0); |
79 | 79 |
this.LayoutImages.Controls.Add(this.selectImage, 0, 1); |
80 | 80 |
this.LayoutImages.Dock = System.Windows.Forms.DockStyle.Fill; |
81 |
this.LayoutImages.Location = new System.Drawing.Point(3, 225);
|
|
81 |
this.LayoutImages.Location = new System.Drawing.Point(3, 351);
|
|
82 | 82 |
this.LayoutImages.Name = "LayoutImages"; |
83 | 83 |
this.LayoutImages.RowCount = 2; |
84 | 84 |
this.LayoutImages.RowStyles.Add(new System.Windows.Forms.RowStyle()); |
... | ... | |
123 | 123 |
this.LayoutDoftech.Name = "LayoutDoftech"; |
124 | 124 |
this.LayoutDoftech.RowCount = 3; |
125 | 125 |
this.LayoutDoftech.RowStyles.Add(new System.Windows.Forms.RowStyle()); |
126 |
this.LayoutDoftech.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
|
126 |
this.LayoutDoftech.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 120F));
|
|
127 | 127 |
this.LayoutDoftech.RowStyles.Add(new System.Windows.Forms.RowStyle()); |
128 |
this.LayoutDoftech.Size = new System.Drawing.Size(280, 105);
|
|
128 |
this.LayoutDoftech.Size = new System.Drawing.Size(280, 198);
|
|
129 | 129 |
this.LayoutDoftech.TabIndex = 0; |
130 | 130 |
// |
131 | 131 |
// lblIssue |
... | ... | |
154 | 154 |
// |
155 | 155 |
this.txtIssue.RootElement.MinSize = new System.Drawing.Size(30, 0); |
156 | 156 |
this.txtIssue.RootElement.StretchVertically = true; |
157 |
this.txtIssue.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; |
|
157 | 158 |
this.txtIssue.ShowClearButton = true; |
158 | 159 |
this.txtIssue.ShowNullText = true; |
159 |
this.txtIssue.Size = new System.Drawing.Size(274, 21);
|
|
160 |
this.txtIssue.Size = new System.Drawing.Size(274, 114);
|
|
160 | 161 |
this.txtIssue.TabIndex = 1; |
161 | 162 |
// |
162 | 163 |
// lstImages |
... | ... | |
166 | 167 |
this.lstImages.Dock = System.Windows.Forms.DockStyle.Fill; |
167 | 168 |
this.lstImages.FullRowSelect = false; |
168 | 169 |
this.lstImages.ItemSize = new System.Drawing.Size(50, 50); |
169 |
this.lstImages.Location = new System.Drawing.Point(3, 48);
|
|
170 |
this.lstImages.Location = new System.Drawing.Point(3, 141);
|
|
170 | 171 |
this.lstImages.MaximumSize = new System.Drawing.Size(0, 60); |
171 | 172 |
this.lstImages.Name = "lstImages"; |
172 | 173 |
// |
... | ... | |
187 | 188 |
this.LayoutSec.Controls.Add(this.lblReplyModification, 0, 0); |
188 | 189 |
this.LayoutSec.Controls.Add(this.txtReplyModification, 0, 1); |
189 | 190 |
this.LayoutSec.Dock = System.Windows.Forms.DockStyle.Fill; |
190 |
this.LayoutSec.Location = new System.Drawing.Point(3, 114);
|
|
191 |
this.LayoutSec.Location = new System.Drawing.Point(3, 207);
|
|
191 | 192 |
this.LayoutSec.MinimumSize = new System.Drawing.Size(0, 105); |
192 | 193 |
this.LayoutSec.Name = "LayoutSec"; |
193 | 194 |
this.LayoutSec.RowCount = 2; |
194 | 195 |
this.LayoutSec.RowStyles.Add(new System.Windows.Forms.RowStyle()); |
195 |
this.LayoutSec.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
|
196 |
this.LayoutSec.Size = new System.Drawing.Size(280, 105);
|
|
196 |
this.LayoutSec.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 120F));
|
|
197 |
this.LayoutSec.Size = new System.Drawing.Size(280, 138);
|
|
197 | 198 |
this.LayoutSec.TabIndex = 2; |
198 | 199 |
// |
199 | 200 |
// lblReplyModification |
... | ... | |
222 | 223 |
// |
223 | 224 |
this.txtReplyModification.RootElement.MinSize = new System.Drawing.Size(30, 0); |
224 | 225 |
this.txtReplyModification.RootElement.StretchVertically = true; |
226 |
this.txtReplyModification.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; |
|
225 | 227 |
this.txtReplyModification.ShowClearButton = true; |
226 | 228 |
this.txtReplyModification.ShowNullText = true; |
227 |
this.txtReplyModification.Size = new System.Drawing.Size(274, 81);
|
|
229 |
this.txtReplyModification.Size = new System.Drawing.Size(274, 114);
|
|
228 | 230 |
this.txtReplyModification.TabIndex = 2; |
229 | 231 |
// |
230 | 232 |
// IssueImagesAndAnswer |
ID2.Manager/ID2.Manager/Controls/IssueImagesAndAnswer.cs | ||
---|---|---|
20 | 20 |
public partial class IssueImagesAndAnswer : UserControl |
21 | 21 |
{ |
22 | 22 |
readonly Informations informations = Informations.Instance; |
23 |
const int TextMinHeight = 30; |
|
24 | 23 |
public event EventHandler<AttImageInfo> RemoveImage; |
25 |
bool IsClient = false; |
|
24 |
bool IsClient { get; set; } = false;
|
|
26 | 25 | |
27 | 26 |
public IssueImagesAndAnswer() |
28 | 27 |
{ |
29 | 28 |
InitializeComponent(); |
30 | 29 | |
31 | 30 |
txtIssue.DataBindings.Add(new Binding("Text", this, "IssueText", false, DataSourceUpdateMode.OnPropertyChanged)); |
32 |
txtIssue.TextBoxElement.TextBoxItem.MouseDown += TextBoxItemIssue_MouseDown; |
|
33 |
txtIssue.TextBoxElement.TextBoxItem.LostFocus += TextBoxItemIssue_LostFocus; |
|
34 | ||
35 | 31 |
txtReplyModification.DataBindings.Add(new Binding("Text", this, "ReplyModificationText", false, DataSourceUpdateMode.OnPropertyChanged)); |
36 |
txtReplyModification.TextBoxElement.TextBoxItem.MouseDown += TextBoxItemReplyModification_MouseDown; |
|
37 |
txtReplyModification.TextBoxElement.TextBoxItem.LostFocus += TextBoxItemReplyModification_LostFocus; |
|
38 | 32 | |
39 | 33 |
lstImages.ListViewElement.ViewElement.Orientation = Orientation.Horizontal; |
40 | 34 | |
... | ... | |
72 | 66 |
} |
73 | 67 |
} |
74 | 68 | |
75 |
private void TextBoxItemIssue_LostFocus(object sender, EventArgs e) |
|
76 |
{ |
|
77 |
txtIssue.MinimumSize = new Size(0, TextMinHeight); |
|
78 | ||
79 |
LayoutDoftech.RowStyles[1].Height = 100; |
|
80 |
LayoutDoftech.RowStyles[1].SizeType = SizeType.Percent; |
|
81 |
} |
|
82 | ||
83 |
private void TextBoxItemIssue_MouseDown(object sender, MouseEventArgs e) |
|
84 |
{ |
|
85 |
txtIssue.MinimumSize = new Size(0, 100); |
|
86 | ||
87 |
LayoutDoftech.RowStyles[1].Height = 100; |
|
88 |
LayoutDoftech.RowStyles[1].SizeType = SizeType.Absolute; |
|
89 |
} |
|
90 | ||
91 |
private void TextBoxItemReplyModification_LostFocus(object sender, EventArgs e) |
|
92 |
{ |
|
93 | ||
94 |
txtReplyModification.MinimumSize = new Size(0, TextMinHeight); |
|
95 | ||
96 |
LayoutSec.RowStyles[1].Height = 100; |
|
97 |
LayoutSec.RowStyles[1].SizeType = SizeType.Percent; |
|
98 |
} |
|
99 | ||
100 |
private void TextBoxItemReplyModification_MouseDown(object sender, MouseEventArgs e) |
|
101 |
{ |
|
102 |
txtReplyModification.MinimumSize = new Size(0, 100); |
|
103 | ||
104 |
LayoutSec.RowStyles[1].Height = 100; |
|
105 |
LayoutSec.RowStyles[1].SizeType = SizeType.Absolute; |
|
106 |
} |
|
107 | ||
108 | 69 |
public event PropertyChangedEventHandler PropertyChanged; |
109 | 70 | |
110 | 71 |
private void LstImages_VisualItemFormatting(object sender, ListViewVisualItemEventArgs e) |
내보내기 Unified diff