string uid; // 全球唯一标示符

        #endregion Fields

        #region Constructors

        // WxPrinter的构造方法
        public WxPrinter(HomeForm homeForm,string sUid)
        {
            myHomeForm = homeForm;
            myPrintServer = new PrintService(this);
            myImageTool = new ImageTool(this);
            uid = sUid;

            // 向服务器注册当前打印机
            string code = HttpTool.sendPost(ADD_PRINTER_UID_URL, "uid=" + uid);
            Properties.Settings.Default.print_code = code;
            Properties.Settings.Default.Save();
        }
Esempio n. 2
0
        string uid;                     // 全球唯一标示符

        // WxPrinter的构造方法
        public WxPrinter(HomeForm homeForm, string sUid)
        {
            myHomeForm    = homeForm;
            myPrintServer = new PrintService(this);
            myImageTool   = new ImageTool(this);
            uid           = sUid;

            // 向服务器注册当前打印机
            string code = HttpTool.sendPost(ADD_PRINTER_UID_URL, "uid=" + uid);

            Properties.Settings.Default.print_code = code;
            Properties.Settings.Default.Save();
        }
Esempio n. 3
0
        PrintService myPrintServer; //打印用的工具包

        #endregion Fields

        #region Constructors

        // WxPrinter的构造方法
        public WxPrinter(HomeForm homeForm)
        {
            myHomeForm = homeForm;
            myPrintServer = new PrintService(this);
            myImageTool = new ImageTool(this);
        }