private void Form_Load()
 {
     nowNum              = 0;
     allNum              = 0;
     cInfo               = new CartonInfo();
     pLable              = new PrintLabel();
     Record_txt.Enabled  = false;
     Carton_txt.KeyDown += new KeyEventHandler(Carton_txt_KeyDown);
     Record_txt.KeyDown += new KeyEventHandler(Record_txt_KeyDown);
 }
Exemple #2
0
        /// <summary>
        /// 打印事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void submit_btn_Click(object sender, EventArgs e)
        {
            PrintLabel pLabel = new PrintLabel(rInfo);

            pLabel.Print(type_txt.Text);
        }