if (Common.GetPidByProcessName(p.ProcessName) != 0)
{
Common.KillProcess("mesages");
}
Application.ExitThread();
System.Diagnostics.Process.Start(System.Reflection.Assembly.GetExecutingAssembly().Location);
{
Common.KillProcess("mesages");
}
Application.ExitThread();
System.Diagnostics.Process.Start(System.Reflection.Assembly.GetExecutingAssembly().Location);
System.Environment.Exit(0);