Esempio n. 1
0
 void InputRmIgnore(List <string> args)
 {
     foreach (char i in args[1])
     {
         if (CopyManager.IsIgnored(i))
         {
             CopyManager.RemoveIgnore(i);
         }
         else
         {
             Console.WriteLine($"Haven't ignored {i} yet.");
         }
     }
 }
Esempio n. 2
0
 void InputAddIgnore(List <string> args)
 {
     foreach (char i in args[1])
     {
         if (!CopyManager.IsIgnored(i))
         {
             CopyManager.AddIgnore(i);
         }
         else
         {
             Console.WriteLine($"Already ignored {i} .");
         }
     }
 }
Esempio n. 3
0
        void Watcher_Event_Arrived(object sender, EventArrivedEventArgs e)
        {
            string diff = DriveHelper.DICompare(diOrigin, DriveInfo.GetDrives());

            if (diff != "")
            {
                ConsoleHelper.EventWriteLine($"Got it!{diff}");
                foreach (char i in diff)
                {
                    if (!CopyManager.IsIgnored(i))
                    {
                        CopyManager.DoCopy(i, appPath + dictMark.Analyse(i));
                    }
                    else
                    {
                        ConsoleHelper.EventWriteLine($"{i} ignored.");
                    }
                }
            }
            diOrigin = DriveInfo.GetDrives();
            //notifyIconHelper.ShowBallon("", "got", 1000);
        }