コード例 #1
0
        /// <summary>
        /// RF ID 정보 추출 완료되면 호출됨
        /// </summary>
        /// <param name="str"></param>
        private void CompleatedRFRead(string str)
        {
            EndEventCapture();

            // 데이터 로딩 다이얼로그
            using (FormLoadingDialog form = new FormLoadingDialog(RestAPI_CheckRFID))
            {
                form.TopLevel      = true;
                form.StartPosition = FormStartPosition.CenterParent;
                form.ShowDialog();
            }

            if (!apiResult) // 인증 실패
            {
                DCafeKiosk.FormMessageBox dlg = new DCafeKiosk.FormMessageBox();
                dlg.StartPosition = FormStartPosition.CenterParent;
                DialogResult dlgResult = dlg.ShowDialog("사용자 카드를 조회할 수 없습니다.", "인증 실패", CustomMessageBoxButtons.RetryCancel);

                if (dlgResult == DialogResult.Retry)
                {
                    ResetForm(); // 재시도
                }
                else if (dlgResult == DialogResult.Cancel)
                {
                    OnPageCancle(); // 처음 페이지 이동
                }
            }
            else // 인증 성공
            {
                OnPageSuccess();
            }
        }
コード例 #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     DCafeKiosk.FormMessageBox dlg = new DCafeKiosk.FormMessageBox();
     dlg.XColorTitle = Color.FromArgb(235, 82, 87);
     DialogResult dlgResult = dlg.ShowDialog("추가 선택을 해주세요.", "추가 선택", DCafeKiosk.CustomMessageBoxButtons.OrderOkCancle);
 }