diff --git a/Rs.SkyLine/Program.cs b/Rs.SkyLine/Program.cs index 39ff832..8d99a1a 100644 --- a/Rs.SkyLine/Program.cs +++ b/Rs.SkyLine/Program.cs @@ -26,7 +26,15 @@ namespace Rs.MotionPlat Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //Application.Run(new FormIO2()); - Application.Run(new Home()); + if (System.Diagnostics.Process.GetProcessesByName(System.Diagnostics.Process.GetCurrentProcess().ProcessName).Length > 1) + { + Msg.ShowInfo("Anther application is running"); + } + else + { + Application.Run(new Home()); + } + } } }