예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Process p = Process.GetProcessById((int)nudProcessID.Value);
            SelectedProcessID = p.Id;
            ProcessName = p.ProcessName;

            if (SelectModule)
            {
                using (formModuleSelect mod = new formModuleSelect(p))
                {
                    if (mod.ShowDialog() != DialogResult.OK)
                        return;
                    SelectedModule = mod.SelectedProcessModule;
                }
            }
            this.DialogResult = DialogResult.OK;
        }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Process p = Process.GetProcessById((int)nudProcessID.Value);

            SelectedProcessID = p.Id;
            ProcessName       = p.ProcessName;

            if (SelectModule)
            {
                using (formModuleSelect mod = new formModuleSelect(p))
                {
                    if (mod.ShowDialog() != DialogResult.OK)
                    {
                        return;
                    }
                    SelectedModule = mod.SelectedProcessModule;
                }
            }
            this.DialogResult = DialogResult.OK;
        }