private void linkLabelRestart_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (IsSingleApplication)
     {
         ApplicationControl.RestartApplication(Application);
     }
     else
     {
         ApplicationControl.RestartApplicationsBySet(ID);
     }
 }
Ejemplo n.º 2
0
 private void RestartSingle_Click(object sender, EventArgs e)
 {
     try
     {
         ToolStripItem item = (ToolStripItem)sender;
         ApplicationControl.RestartApplication((Application)item.Tag);
     }
     catch (Exception ex)
     {
         FormUtilities.ShowError(this, ex);
     }
 }
Ejemplo n.º 3
0
 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);
     }
 }