public WindowListForm(ControlLine cL) { InitializeComponent(); parent = cL; Process[] processList = Process.GetProcesses(); System.Collections.ArrayList WindowList = new System.Collections.ArrayList(); foreach (Process p in processList) { if (!String.IsNullOrEmpty(p.MainWindowTitle) && Environment.Is64BitProcess) { WindowList.Add(p.ProcessName); PathList.Add(GetProcessName(p.Id)); } } lbxWindowList.Items.AddRange(WindowList.ToArray()); }
public sceneConfigControlLine addControlLine(String[] sceneGames) { ControlLine line = new ControlLine(parent, sceneGames, this); return(line); }