2 using System.Collections.Generic;
3 using System.ComponentModel;
7 using System.Windows.Forms;
8 using System.ServiceProcess;
12 public partial class ServiceStatus : Form
14 public ServiceStatus()
16 InitializeComponent();
19 ServiceController sc = new ServiceController("icinga2");
21 txtStatus.Text = sc.Status.ToString();
22 } catch (InvalidOperationException) {
23 txtStatus.Text = "Not Available";
27 private void btnReconfigure_Click(object sender, EventArgs e)
29 new SetupWizard().ShowDialog(this);
32 private void btnOK_Click(object sender, EventArgs e)