private void linkLabelRestart_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (IsSingleApplication) { ApplicationControl.RestartApplication(Application); } else { ApplicationControl.RestartApplicationsBySet(ID); } }
private void RestartBySet_Click(object sender, EventArgs e) { try { ToolStripItem item = (ToolStripItem)sender; ApplicationControl.RestartApplicationsBySet((string)item.Tag); } catch (Exception ex) { FormUtilities.ShowError(this, ex); } }
private void RestartRecent_Click(object sender, EventArgs e) { try { ToolStripItem item = (ToolStripItem)sender; Application application = ApplicationControl.GetApplicationByID((string)item.Tag); if (application != null) { ApplicationControl.RestartApplication(application); } else { ApplicationControl.RestartApplicationsBySet((string)item.Tag); } } catch (Exception ex) { FormUtilities.ShowError(this, ex); } }