private void linkLabelStart_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (IsSingleApplication) { ApplicationControl.StartApplication(Application); } else { ApplicationControl.StartApplicationsBySet(ID); } }
private void StartBySet_Click(object sender, EventArgs e) { try { ToolStripItem item = (ToolStripItem)sender; ApplicationControl.StartApplicationsBySet((string)item.Tag); } catch (Exception ex) { FormUtilities.ShowError(this, ex); } }
private void StartRecent_Click(object sender, EventArgs e) { try { ToolStripItem item = (ToolStripItem)sender; Application application = ApplicationControl.GetApplicationByID((string)item.Tag); if (application != null) { ApplicationControl.StartApplication(application); } else { ApplicationControl.StartApplicationsBySet((string)item.Tag); } } catch (Exception ex) { FormUtilities.ShowError(this, ex); } }