Esempio n. 1
0
        private void WCPrintBtn_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);

            myConfirmDlg.ShowDialog();

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

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

            //Mark Phone
            SLMgr.SetLaserPower(Para.PhoneSetLaserPower);
            SLMgr.SetFrequency(Para.PhoneSetFreq);
            SLMgr.SetMarkSpeed(Para.PhoneSetSpeed);

            SLMarkingWorker.RunWorkerAsync();
        }
Esempio n. 2
0
 private void Button_Click_1(object sender, RoutedEventArgs e)
 {
     SLMgr.SetLaserPower(67);
     SLMgr.SetFrequency(490000);
     SLMgr.SetMarkSpeed(1000);
 }