private void toolStripButtonApplication_Click(object sender, EventArgs e) { if (Shared.irsStatus == IrsStatus.RunningApplication) { Shared.ApplicationStop(); } if (Shared.irsStatus == IrsStatus.NotRunning) { Shared.ApplicationStart(); } }