Example #1
0
        void StartProcesses(object programm, EventArrivedEventArgs e)
        {
            string name = e.NewEvent.Properties["ProcessName"].Value.ToString();

            if ((WatchPrograms == null || WatchPrograms.Contains(name)) && !runnedProgramms.ContainsValue(name))
            {
                string id = e.NewEvent.Properties["ProcessId"].Value.ToString();
                runnedProgramms.Add(id, name);
                NotifyStart?.Invoke(id);
            }
        }
Example #2
0
 public void JoinClick()
 {
     NotifyStart?.Invoke(Name);
 }
Example #3
0
 public void Start()
 {
     //todo check if he input the fields or it's empty!
     NotifyStart?.Invoke(Name + " " + Width + " " + Height);
 }
Example #4
0
 private void StartMethod(string s)
 {
     this.Close();
     NotifyStart?.Invoke(s);
 }