Пример #1
0
 private void Timer_Elapsed(object sender, ElapsedEventArgs e)
 {
     // ISSUE: This will only get hit the next time the timer finishes it's elapsed time.
     // What if the user has chosen a smaller interval, say from 30 min down to 5,
     // how will the app know to change it until another 30 min passes and we hit the elapsed?
     // Settings need to raise an event which will be picked up here...
     CheckTimeStamps();
     PopTheToast.PopIt(NotifText);
 }
Пример #2
0
    static void Main(string[] args)
    {
        try {
            string userName = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile).Replace(@"C:\Users\", "");

            if (!Directory.Exists(App_Folder))
            {
                Directory.CreateDirectory(App_Folder);
                File.WriteAllText(Path.Combine(App_Folder, "locations.txt"), userName);
            }

            if (File.Exists(Path.Combine(App_Folder, "locations.txt")))
            {
                string[] users = File.ReadAllLines(Path.Combine(App_Folder, "locations.txt"));
                string   saved = @$ "C:\Users\{users.FirstOrDefault()}\Pictures\Spotlight Images";

                foreach (string name in users)
                {
                    GetPics(@$ "C:\Users\{name}\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets", saved);
                }

                PopTheToast.PopIt("All images were successfully saved.");
            }
Пример #3
0
 private void Test_Click(object sender, RoutedEventArgs e)
 {
     NotifText = notifText.CurrentText;
     PopTheToast.PopIt(NotifText);
 }