Ejemplo n.º 1
0
        /// #NAME#: #DESCRIPTION#
        public void f_b6e71095_5f94_49c4_a330_9950b390d963()
        {
            //INI CODE PRCGUID: b6e71095-5f94-49c4-a330-9950b390d963

            ARQODE_UI.GestorProgramas.CVentanaProgramas CVentanaProgramas = new ARQODE_UI.GestorProgramas.CVentanaProgramas(vm);
            String cadBusqueda = CVentanaProgramas.MenuTop.Items[7].Text;

            CStructModifications csmod             = new CStructModifications(sys, App_globals);
            List <KeyValuePair <JToken, int> > res = csmod.Find_all_in_programs(cadBusqueda);

            DataTable dt = new DataTable();

            dt.Columns.Add("Path");
            dt.Columns.Add("Ruta");
            dt.Columns.Add("Proceso");
            dt.Columns.Add("Guid");
            int max = 0;

            foreach (KeyValuePair <JToken, int> s in res)
            {
                if (max == 0)
                {
                    max = s.Value;
                }
                if (s.Value > max - 2)
                {
                    String programa  = s.Key["Program"].ToString();
                    String proceso   = s.Key["Process name"].ToString();
                    String proc_guid = s.Key["Process guid"].ToString();

                    String cad = programa.Replace(App_globals.AppDataSection(dPATH.CODE).FullName + "\\", "").Replace("\\", ".").Replace(".json", "");
                    dt.Rows.Add(new object[] { cad, cad, proceso, proc_guid });
                }
                else
                {
                    break;
                }
            }

            Outputs("Tabla resultados", dt);
            Outputs("Num columna con path", 0);

            //END CODE PRCGUID: b6e71095-5f94-49c4-a330-9950b390d963
        }