Пример #1
0
        public static void DisplayErrors(string Lib, string Obj)
        {
            ErrorHandle.getErrors(Lib, Obj);

            if (Main.ErrorWindow != null)
            {
                Main.ErrorWindow.publishErrors();
                Win32.SendMessage(PluginBase.nppData._nppHandle, NppMsg.NPPM_DMMSHOW, 0, Main.ErrorWindow.Handle);
            }
        }
Пример #2
0
        public static void getErrors(string lib, string obj)
        {
            string filetemp = Path.GetTempFileName();

            List <string> commands = new List <string>();

            lib = lib.Trim().ToUpper();
            obj = obj.Trim().ToUpper();

            if (lib == "*CURLIB")
            {
                lib = IBMi.GetConfig("curlib");
            }

            commands.Add("ASCII");
            commands.Add("cd /QSYS.lib");
            commands.Add("recv \"" + lib + ".lib/EVFEVENT.file/" + obj + ".mbr\" \"" + filetemp + "\"");

            IBMi.RunCommands(commands.ToArray());

            ErrorHandle.doName(lib.ToUpper() + '/' + obj.ToUpper());
            ErrorHandle.setLines(File.ReadAllLines(filetemp));
        }