Ejemplo n.º 1
0
 private void Manual_MenuItem_Click(object sender, RoutedEventArgs e)
 {
     listener.Stop();
     Auto_MenuItem.IsChecked        = false;
     Manual_MenuItem.IsChecked      = true;
     Start_Print_MenuItem.IsEnabled = true;
     //picturesPage.HideControl(false);
     this.HideControl(false);
     Refresh();
 }
Ejemplo n.º 2
0
        /*
         *
         */

        //打印模式选择
        private void PrintModeClick(object sender, RoutedEventArgs e)
        {
            System.Windows.Controls.MenuItem menuItem = sender as System.Windows.Controls.MenuItem;
            if (menuItem.Name == "Auto_MenuItem")
            {
                listener.Start();
                Manual_MenuItem.IsChecked      = false;
                Auto_MenuItem.IsChecked        = true;
                Start_Print_MenuItem.IsEnabled = false;
                picturesPage.HideControl(true);
            }
            else if (menuItem.Name == "Manual_MenuItem")
            {
                listener.Stop();
                Auto_MenuItem.IsChecked        = false;
                Manual_MenuItem.IsChecked      = true;
                Start_Print_MenuItem.IsEnabled = true;
                picturesPage.HideControl(false);
            }

            picturesPage.EE_Number_TextBlock.Text        = "";
            picturesPage.EE_Piceture_Image.Source        = null;
            picturesPage.Overprint_Number_TextBlock.Text = "";
            picturesPage.Overprint_Picture_Image.Source  = null;
            picturesPage.Preview_Number_TextBlock.Text   = "";
            picturesPage.Preview_Picture_Image.Source    = null;
        }
Ejemplo n.º 3
0
 private void MainFrm_FormClosed(object sender, FormClosedEventArgs e)
 {
     listener.Stop();
 }
Ejemplo n.º 4
0
 public void Close()//窗口关闭执行
 {
     listener.Stop();
 }
Ejemplo n.º 5
0
 private void Window_Closed(object sender, EventArgs cancelEventArgs)
 {
     scanerHook.Stop();
     // BarCode.Stop();
     // 析构
 }