Exemplo n.º 1
0
        internal static bool smethod_0(DataGridView dataGridView_0, string string_0, object object_0, string string_1, List <PrinterItems> header, List <PrinterItems> footer, bool bool_0)
        {
            bool flag = false;
            bool allowUserToAddRows = dataGridView_0.AllowUserToAddRows;

            dataGridView_0.AllowUserToAddRows = false;
            flag = new PrintOptionsFormQD(dataGridView_0, string_0, object_0, string_1, header, footer).Print(bool_0);
            dataGridView_0.AllowUserToAddRows = allowUserToAddRows;
            return(flag);
        }
Exemplo n.º 2
0
        public static bool PrintSerial(DataGridView dataGridView_0, object object_0, string string_0, List <PrinterItems> header, List <PrinterItems> footer, bool bool_0, bool bool_1, string string_1)
        {
            bool flag = false;
            bool allowUserToAddRows = dataGridView_0.AllowUserToAddRows;

            dataGridView_0.AllowUserToAddRows = false;
            PrintOptionsFormQD mqd = new PrintOptionsFormQD(dataGridView_0, object_0, string_0, header, footer)
            {
                showTextInserialPrint = string_1,
                isSerialPrint         = bool_1
            };

            flag = mqd.Print(bool_0);
            dataGridView_0.AllowUserToAddRows = allowUserToAddRows;
            if (mqd.isGiveUpByUser)
            {
                throw new Exception("用户放弃连续打印");
            }
            return(flag);
        }