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."); } } }
void InputAddIgnore(List <string> args) { foreach (char i in args[1]) { if (!CopyManager.IsIgnored(i)) { CopyManager.AddIgnore(i); } else { Console.WriteLine($"Already ignored {i} ."); } } }
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); }