private void linkLabelStop_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (IsSingleApplication)
     {
         ApplicationControl.StopApplication(Application);
     }
     else
     {
         ApplicationControl.StopApplicationsBySet(ID);
     }
 }
Esempio n. 2
0
 private void StopBySet_Click(object sender, EventArgs e)
 {
     try
     {
         ToolStripItem item = (ToolStripItem)sender;
         ApplicationControl.StopApplicationsBySet((string)item.Tag);
     }
     catch (Exception ex)
     {
         FormUtilities.ShowError(this, ex);
     }
 }
Esempio n. 3
0
 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);
     }
 }