コード例 #1
0
ファイル: Registration.cs プロジェクト: vamshedhar/Dispensary
        public void issueToken()
        {
            tokens();
            opd opd = new opd();

            opd.issueToken(username, (Convert.ToInt32(label8.Text) + 1).ToString(), textBox1.Text, comboBox1.Text, comboBox3.Text, code.ToString());
            try
            {
                //printPreviewDialog1.ShowDialog();
                printDocument1.Print();
            }
            catch (Exception Ex)
            {
                MessageBox.Show(Ex.Message + "\n\nPrinter Not Connected Properly!! Please Check that and Issue the token!!");
            }
            loadData();
            clearData();
            tokens();
        }