Exemplo n.º 1
0
            public static StartUpItem[] GetSystemStartupItems()
            {
                var dir   = Phone.IO.Directory.OpenDirectory(@"\Windows\StartUp");
                var files = dir.GetFiles();

                StartUpItem[] items = new StartUpItem[files.Length];

                for (int i = 0; i < files.Length; i++)
                {
                    var data = files[i];
                    items[i] = new StartUpItem {
                        Name = data.FileName, Launches = Phone.IO.File7.ReadAllString(data.FullFileName)
                    };
                }

                return(items);
            }
Exemplo n.º 2
0
            public static StartUpItem[] GetSystemStartupItems()
            {
                var dir = Phone.IO.Directory.OpenDirectory(@"\Windows\StartUp");
                var files = dir.GetFiles();

                StartUpItem[] items = new StartUpItem[files.Length];

                for (int i = 0; i < files.Length; i++)
                {
                    var data = files[i];
                    items[i] = new StartUpItem { Name = data.FileName, Launches = Phone.IO.File7.ReadAllString(data.FullFileName) };
                }

                return items;
            }