static void Main()
        {
            System.Threading.Mutex run = new System.Threading.Mutex(true, "single_test", out bool runone);

            if (runone)
            {
                run.ReleaseMutex();

                Application.EnableVisualStyles();

                Application.SetCompatibleTextRenderingDefault(false);

                HomeForm form = new HomeForm();

                int hdc = form.Handle.ToInt32();

                Application.Run(form);

                IntPtr a = new IntPtr(hdc);
            }
            else
            {
                MessageBox.Show("压缩器已在运行");
            }
        }
Beispiel #2
0
 public RegexInput(HomeForm form)
 {
     home = form;
     InitializeComponent();
 }
Beispiel #3
0
 public HelpForm(HomeForm form)
 {
     home = form;
     InitializeComponent();
 }