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); } }
public void JoinClick() { NotifyStart?.Invoke(Name); }
public void Start() { //todo check if he input the fields or it's empty! NotifyStart?.Invoke(Name + " " + Width + " " + Height); }
private void StartMethod(string s) { this.Close(); NotifyStart?.Invoke(s); }