Exemplo n.º 1
0
        /*
         *  This actually goes and gets logs, then parses them
         */
        private void doFetchUpdate(string passed_text)
        {
            PrintingCode = new RPI_Print();
            printJob[] jobs = PrintingCode.get_prints_printer(passed_text, rpiCode);
            setableListBox.Items.Clear();
            foreach (printJob JOB in jobs)
            {
                string temp = "";
                if (JOB.JobUser.Length < 8)
                    temp += JOB.JobUser + "\t\t";
                else
                    temp += JOB.JobUser + "\t";

                temp += JOB.JobStart + " --> ";

                if (JOB.JobStop != "")
                    temp += JOB.JobStop;
                else
                    temp += "ACTIVE";

                if (temp.Length < 50)
                    temp += "\t\t";
                else
                    temp += "\t";

                if (JOB.JobPages < 0)
                    temp += "ERROR";
                else
                    temp += JOB.JobPages + " pages";
                setableListBox.Items.Add(temp);
            }
        }
Exemplo n.º 2
0
        /*
         *  This actually goes and gets logs, then parses them
         */
        private void doFetchUpdate(string passed_text)
        {
            PrintingCode = new RPI_Print();
            printJob[] jobs = PrintingCode.get_prints_printer(passed_text, rpiCode);
            setableListBox.Items.Clear();
            foreach (printJob JOB in jobs)
            {
                string temp = "";
                if (JOB.JobUser.Length < 8)
                {
                    temp += JOB.JobUser + "\t\t";
                }
                else
                {
                    temp += JOB.JobUser + "\t";
                }

                temp += JOB.JobStart + " --> ";

                if (JOB.JobStop != "")
                {
                    temp += JOB.JobStop;
                }
                else
                {
                    temp += "ACTIVE";
                }

                if (temp.Length < 50)
                {
                    temp += "\t\t";
                }
                else
                {
                    temp += "\t";
                }

                if (JOB.JobPages < 0)
                {
                    temp += "ERROR";
                }
                else
                {
                    temp += JOB.JobPages + " pages";
                }
                setableListBox.Items.Add(temp);
            }
        }