public bool RemoveProcess(ProcessContainer processToRemove)
 {
     //Process.GetProcessById(Id).Kill();
     if (Process.GetProcessById(processToRemove.Id).ProcessName == processToRemove.ProcessName)
     {
         processList.Remove(processToRemove);
     }
     return true;
 }
 private void SetTimer(ProcessContainer process, DateTime time)
 {
     DispatcherTimer timer = new DispatcherTimer();
     timer.Tick += HandleTick;
     timer.Interval = time - DateTime.Now < TimeSpan.FromSeconds(1) ? TimeSpan.FromSeconds(1) : time - DateTime.Now;
     timer.Tag = process;
     timer.Start();
     scheduledList.Add(process);
     process.IsScheduled = true;
 }