private void linkLabelStop_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (IsSingleApplication) { ApplicationControl.StopApplication(Application); } else { ApplicationControl.StopApplicationsBySet(ID); } }
private void StopSingle_Click(object sender, EventArgs e) { try { ToolStripItem item = (ToolStripItem)sender; ApplicationControl.StopApplication((Application)item.Tag); } catch (Exception ex) { FormUtilities.ShowError(this, ex); } }
private void StopRecent_Click(object sender, EventArgs e) { try { ToolStripItem item = (ToolStripItem)sender; Application application = ApplicationControl.GetApplicationByID((string)item.Tag); if (application != null) { ApplicationControl.StopApplication(application); } else { ApplicationControl.StopApplicationsBySet((string)item.Tag); } } catch (Exception ex) { FormUtilities.ShowError(this, ex); } }