Ejemplo n.º 1
0
        /// <summary>
        /// Gets all the processes and adds them to the dropdown list
        /// </summary>
        private void UpdateProcesses()
        {
            lstProcessList.SuspendLayout();
            lstProcessList.Items.Clear();
            List <string> processNames = HaloMemoryWriter.GetProcessNames();

            for (int i = 0; i < processNames.Count; i++)
            {
                lstProcessList.Items.Add(processNames[i]);
                if (processNames[i] == "halo2")
                {
                    if (HaloMemoryWriter.TryConnectToProcess(processNames[i]))
                    {
                        lstProcessList.SelectedIndex = i;
                    }
                }
            }
            lstProcessList.ResumeLayout();
        }
Ejemplo n.º 2
0
        private void UpdateProcesses()
        {
            processList.Items.Clear();

            HaloMemoryWriter.GetProcessNames().ForEach((string name) => processList.Items.Add(name));
        }