示例#1
0
 private void btnApply_Click(object sender, EventArgs e)
 {
     ServiceConfiguration.Save(Config);
     this.State.RestartService();
     MessageBox.Show("Settings saved!");
 }
示例#2
0
 private void btnOk_Click(object sender, EventArgs e)
 {
     ServiceConfiguration.Save(Config);
     this.State.RestartService();
     Close();
 }