예제 #1
0
        //void cmbLocationType_SelectedIndexChanged(object sender, EventArgs e)
        //{
        //    if (_firstLoad) { return; }
        //    if (cmbLocationType.SelectedValue == null) { return; }
        //    if (int.Parse(cmbLocationType.SelectedValue.ToString()) < 1) ;
        //    var filteredLocation =
        //        _locations.FindAll(m => m.BusinessLocationTypeId == int.Parse(cmbLocationType.SelectedValue.ToString()));

        //    // filteredLocation.Insert(0, new BusinessLocation { BusinessLocationId = 0, Name = @"-- Please Select --" });
        //    bdsBusinessLocation.DataSource = new List<BusinessLocation>();
        //    bdsBusinessLocation.DataSource = filteredLocation;
        //    cmbBusinessLocation.SelectedValue = Utils.StationInfo.BusinessLocationId;
        //}



        #region Sub Modules

        void btnCaptureInfo_Click(object sender, EventArgs e)
        {
            var fingers = Utils.CapturedTemplates;

            if (!ValidateSubmission())
            {
                return;
            }

            CacheInfo();
            //var frmCap = new frmCaptureImage();
            //if (frmCap.ShowDialog() != DialogResult.OK)
            //{
            //    return;
            //}


            bool flag;
            var  frm = new frmModuleDisplay(2, out flag);

            if (!flag)
            {
                return;
            }


            //var ck = Utils.BeneficiaryRegObj;

            frm.Show();
            frm.Location = new Point(Width, 0);
            var t = new Transition(new TransitionType_EaseInEaseOut(150));

            t.add(frm, "Left", 0);
            t.run();
        }
예제 #2
0
        void btnCaptureFinger_Click(object sender, EventArgs e)
        {
            #region Trying Saving Templates in DB

            var tempx = new FingerTemplateData
            {
                FingerPrintTemplates = Utils.BeneficiaryRegObj.FingerPrintTemplate
            };

            //var helper = new BeneficiaryBiometric
            //{
            //    BeneficiaryId = 2,
            //    RightThumbPrintTemplate = null,
            //    RightIndexPrintTemplate = null,
            //    ImageFileName = "",
            //    _Template = JsonConvert.SerializeObject(tempx)
            //};
            //var retId = new BeneficiaryRepository().AddBeneciaryBiometric(helper);
            //if (retId.IsSuccessful)
            //{
            //    MessageBox.Show(@"State list is empty!", "", MessageBoxButtons.OK, MessageBoxIcon.Error);
            //}

            #endregion

            bool flag;
            var  frm = new frmModuleDisplay(2, out flag);
            if (!flag)
            {
                return;
            }
            frm.Show();
            frm.Location = new Point(Width, 0);
            var t = new Transition(new TransitionType_EaseInEaseOut(150));
            t.add(frm, "Left", 0);
            t.run();
        }
예제 #3
0
        void btnCaptureFingerInfo_Click(object sender, EventArgs e)
        {
            var validate = ValidateFinger();

            if (validate)
            {
                MessageBox.Show(@"No Finger Capture for the enrollment! Please capture at least two fingers", "", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            Utils.BeneficiaryRegObj.CapturedFingerPrintTemplate = Utils.CapturedTemplates;

            //if (!StoredFingerTemplates())
            //{
            //    return;
            //}



            #region Trying Saving Templates in DB

            //var fingerByteLists = EnrollHelper.ExtractFingerTemplates();
            //if (!fingerByteLists.Any())
            //{
            //    MessageBox.Show(@"No Finger Capture for the enrollment! Please capture at least two fingers", "", MessageBoxButtons.OK, MessageBoxIcon.Error);
            //    return;
            //}

            //var temp = Utils.CapturedTemplates;

            //var tempx = new FingerTemplateData
            //{
            //    FingerPrintTemplates = Utils.BeneficiaryRegObj.FingerPrintTemplate
            //};

            //var helper = new BeneficiaryBiometric
            //{
            //    BeneficiaryId = 2,
            //    RightThumbPrintTemplate = null,
            //    RightIndexPrintTemplate = null,
            //    ImageFileName = "",
            //    _Template = JsonConvert.SerializeObject(tempx)
            //};
            //var retId = new BeneficiaryRepository().AddBeneciaryBiometric(helper);
            //if (retId.IsSuccessful)
            //{
            //    MessageBox.Show(@"State list is empty!", "", MessageBoxButtons.OK, MessageBoxIcon.Error);
            //}

            #endregion

            bool flag;
            var  frm = new frmModuleDisplay(3, out flag);
            if (!flag)
            {
                return;
            }
            frm.Show();
            frm.Location = new Point(Width, 0);
            var t = new Transition(new TransitionType_EaseInEaseOut(150));
            t.add(frm, "Left", 0);
            t.run();
        }