コード例 #1
0
        private void btnAutomationChooseProcess_Click(object sender, RoutedEventArgs e)
        {
            _automationChosenWindow = null;
            lblAutomationChosenWindow.Content = "No Window Chosen";

            var chooseProcess = new ItemChoose((processID) =>
            {
                _automationChosenProc = new Proc(Process.GetProcessById(processID));
                var content = string.Concat("PID: " + _automationChosenProc.Id, " Name: " + _automationChosenProc.Name);
                lblAutomationChosenProcess.Content = content;
            },
            Proc.GetAllProcesses(false).ToDictionary(item => item.Id, item => item.Name),
            isOrderByKey: false,
            onCancel: () =>
            {
                _automationChosenProc = null;
                lblAutomationChosenProcess.Content = "No Process Chosen";
            });
            chooseProcess.ShowDialog();
        }
コード例 #2
0
 private void ChooseProcess_Click(object sender, RoutedEventArgs e)
 {
     var chooseProcess = new ItemChoose((processID) =>
     {
         _memoryWalkerChosenProc = new Proc(Process.GetProcessById(processID));
         var content = string.Concat("Chosen Process: ", _memoryWalkerChosenProc.Id);
         lblMemoryWalkerChosenProcess.Content = content;
     }, Proc.GetAllProcesses(false).ToDictionary(item => item.Id, item => item.Name), isOrderByKey: false);
     chooseProcess.ShowDialog();
 }
コード例 #3
0
 public ProcessInfoMain(Proc process)
 {
     SelectedProcess = process.Process;
     InitializeComponent();
 }