86 _btnMsgBox.Click += (_, _) =>
88 DreamineMessageBox.ShowAsync(
89 "DreamineMessageBox 데모입니다.\n버튼을 클릭하거나 기다리면 자동으로 닫힙니다.",
91 MessageBoxButtons.OKCancel,
92 MessageBoxIcon.Information,
93 autoClick: DialogResult.OK,
94 autoClickDelaySeconds: 5,
95 callback: r =>
_resultLabel.Text = $
"Last result: MessageBox → {r}");
99 _btnBlinkOk.Click += async (_, _) =>
101 var result = await DreamineBlinkPopup.ShowAsync(FindForm(),
new BlinkPopupOptions
104 Message =
"작업이 성공적으로 완료되었습니다.",
106 Color1 = Color.FromArgb(13, 27, 62),
107 Color2 = Color.FromArgb(13, 27, 62),
108 ForegroundColor = Color.White,
112 _resultLabel.Text = $
"Last result: BlinkPopup(OK) → {result}";
116 _btnBlinkAlarm.Click += async (_, _) =>
118 var result = await DreamineBlinkPopup.ShowAsync(FindForm(),
new BlinkPopupOptions
121 Message =
"설비 이상이 감지되었습니다.\n운영자 확인이 필요합니다.",
123 BlinkIntervalMs = 400,
124 Color1 = Color.FromArgb(180, 30, 30),
125 Color2 = Color.FromArgb(80, 10, 10),
126 ForegroundColor = Color.Yellow,
131 _resultLabel.Text = $
"Last result: BlinkPopup(Alarm) → {result}";
150 _layout =
new FlowLayoutPanel();
156 _title.AutoSize =
true;
157 _title.Font =
new Font(
"Segoe UI", 18F, FontStyle.Bold);
158 _title.ForeColor = Color.White;
159 _title.Location =
new Point(0, 0);
160 _title.Margin =
new Padding(0, 0, 0, 24);
161 _title.Name =
"_title";
162 _title.Size =
new Size(163, 32);
164 _title.Text =
"Popup Demo";
168 _resultLabel.AutoSize =
true;
169 _resultLabel.Font =
new Font(
"Segoe UI", 10F);
170 _resultLabel.ForeColor = Color.FromArgb(136, 153, 170);
171 _resultLabel.Location =
new Point(0, 264);
172 _resultLabel.Margin =
new Padding(0, 16, 0, 0);
173 _resultLabel.Name =
"_resultLabel";
174 _resultLabel.Size =
new Size(93, 19);
175 _resultLabel.TabIndex = 4;
176 _resultLabel.Text =
"Last result: —";
180 _btnMsgBox.BackColor = Color.FromArgb(13, 27, 62);
181 _btnMsgBox.BorderColor = Color.FromArgb(45, 74, 110);
182 _btnMsgBox.Command =
null;
183 _btnMsgBox.CommandParameter =
null;
184 _btnMsgBox.Content =
"DreamineMessageBox (5s auto-close)";
185 _btnMsgBox.CornerRadius = 6;
186 _btnMsgBox.Font =
new Font(
"Segoe UI", 10F);
187 _btnMsgBox.ForeColor = Color.White;
188 _btnMsgBox.IsSelected =
false;
189 _btnMsgBox.Location =
new Point(0, 56);
190 _btnMsgBox.Margin =
new Padding(0, 0, 0, 8);
191 _btnMsgBox.Name =
"_btnMsgBox";
192 _btnMsgBox.ShineColor = Color.Empty;
193 _btnMsgBox.Size =
new Size(260, 40);
194 _btnMsgBox.TabIndex = 1;
198 _btnBlinkOk.BackColor = Color.FromArgb(13, 27, 62);
199 _btnBlinkOk.BorderColor = Color.FromArgb(45, 74, 110);
200 _btnBlinkOk.Command =
null;
201 _btnBlinkOk.CommandParameter =
null;
202 _btnBlinkOk.Content =
"BlinkPopup — 완료 알림";
203 _btnBlinkOk.CornerRadius = 6;
204 _btnBlinkOk.Font =
new Font(
"Segoe UI", 10F);
205 _btnBlinkOk.ForeColor = Color.White;
206 _btnBlinkOk.IsSelected =
false;
207 _btnBlinkOk.Location =
new Point(0, 104);
208 _btnBlinkOk.Margin =
new Padding(0, 0, 0, 8);
209 _btnBlinkOk.Name =
"_btnBlinkOk";
210 _btnBlinkOk.ShineColor = Color.Empty;
211 _btnBlinkOk.Size =
new Size(260, 40);
212 _btnBlinkOk.TabIndex = 2;
216 _btnBlinkAlarm.BackColor = Color.FromArgb(13, 27, 62);
217 _btnBlinkAlarm.BorderColor = Color.FromArgb(45, 74, 110);
218 _btnBlinkAlarm.Command =
null;
219 _btnBlinkAlarm.CommandParameter =
null;
220 _btnBlinkAlarm.Content =
"BlinkPopup — 설비 ALARM (점멸)";
221 _btnBlinkAlarm.CornerRadius = 6;
222 _btnBlinkAlarm.Font =
new Font(
"Segoe UI", 10F);
223 _btnBlinkAlarm.ForeColor = Color.White;
224 _btnBlinkAlarm.IsSelected =
false;
225 _btnBlinkAlarm.Location =
new Point(0, 152);
226 _btnBlinkAlarm.Margin =
new Padding(0, 0, 0, 8);
227 _btnBlinkAlarm.Name =
"_btnBlinkAlarm";
228 _btnBlinkAlarm.ShineColor = Color.Empty;
229 _btnBlinkAlarm.Size =
new Size(260, 40);
230 _btnBlinkAlarm.TabIndex = 3;
234 _layout.AutoSize =
true;
240 _layout.Dock = DockStyle.Fill;
241 _layout.FlowDirection = FlowDirection.TopDown;
242 _layout.Location =
new Point(24, 24);
243 _layout.Name =
"_layout";
244 _layout.Size =
new Size(1133, 1225);
245 _layout.TabIndex = 0;
246 _layout.WrapContents =
false;
250 BackColor = Color.FromArgb(26, 26, 46);
253 Padding =
new Padding(24);
254 Size =
new Size(1181, 1273);