Form1.cs 856 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using Azylee.Core.DataUtils.CollectionUtils;
  2. using Azylee.Core.WindowsUtils.APIUtils;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel;
  6. using System.Data;
  7. using System.Diagnostics;
  8. using System.Drawing;
  9. using System.Linq;
  10. using System.Runtime.InteropServices;
  11. using System.Text;
  12. using System.Windows.Forms;
  13. namespace Test.RaiseOtherApp
  14. {
  15. public partial class Form1 : Form
  16. {
  17. public Form1()
  18. {
  19. InitializeComponent();
  20. }
  21. private void Form1_Load(object sender, EventArgs e)
  22. {
  23. }
  24. private void button1_Click(object sender, EventArgs e)
  25. {
  26. Process[] p = Process.GetProcessesByName("AccessSecurity");
  27. if (ListTool.HasElements(p))
  28. {
  29. ApplicationAPI.Raise(p[0], true);
  30. }
  31. }
  32. }
  33. }