private void AddProcessItemToView(ProcessItem item) { ListViewItem item2 = new ListViewItem { Text = item.Process.ProcessName, SubItems = { item.Process.MainWindowTitle, item.Process.Id.ToString(), item.Visible ? "可见" : "不可见" }, Tag = item, Group = this.lvwProcess.Groups["Windowed"] }; if (Settings.Default.RememberProcesses && this.ProcessRemembered(item.Process)) { item2.Checked = true; } if (Settings.Default.AutoSelect) { item2.Checked = true; } this.lvwProcess.Items.Add(item2); }
public ProcessManagerEventArgs(ProcessItem item) { this.Item = item; }