示例#1
0
        private void WCPrintCardBtn_MouseClick(object sender, MouseButtonEventArgs e)
        {
            //if (!Para.ByPassDoorSen)
            //{
            //    if (!SLMgr.Get_Input(6))
            //    {
            //        MessageDlg myDlg = new MessageDlg("Warning", "Please Close Door Before Marking.", true);
            //        myDlg.ShowDialog();
            //        //MessageBox.Show("Please Place Phone Into The Marking Area.", "Information", MessageBoxButton.OK, MessageBoxImage.Warning);
            //        //MessageBox.Show("Please Place Phone Into The Marking Area");
            //        return;
            //    }
            //}

            string     msgTitle     = MultiLanguage.GetMarkingTitleString();
            string     msgStr       = MultiLanguage.GeStartMarkString();
            MessageDlg myConfirmDlg = new MessageDlg(msgTitle, msgStr, false);

            //MessageDlg myConfirmDlg = new MessageDlg("Marking", "Start Marking?", false);
            myConfirmDlg.ShowDialog();

            if (Para.ShowRedPointer)
            {
                SLMgr.HideRedPointer();
            }

            if (myConfirmDlg.Res == -1)
            {
                return;
            }

            //Card Phone
            SLMgr.SetLaserPower(Para.CardSetLaserPower);
            SLMgr.SetFrequency(Para.CardSetFreq);
            SLMgr.SetMarkSpeed(Para.CardSetSpeed);

            SLMarkingWorker.RunWorkerAsync();
        }