static void Main() { OSProcess.HasSingle(); CustomConfig.Init(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); LogInterface.Listen(CustomConfig._LogDirectoryName.ToString()); Application.Run(new FrmMain()); }
private void Create() { while (true) { Thread.Sleep(1000); if (jobQueue.Count < 10) { OSProcess osp = new OSProcess(++counter); jobQueue.Enqueue(osp); statusJob = "Created new Process " + osp.ID + "."; //MessageBox.Show(osp.ID + ""); } else { //Thread.Sleep(1000); } } }