C#??Windows??????????????
???????????? ???????[ 2014/6/17 13:53:03 ] ????????C# net
????????????
1 if (string.IsNullOrEmpty(cboServiceGroup.Text))
2 {
3 MessageBox.Show("?????????????????");
4 return;
5 }
6 //
7 string path = Directory.GetCurrentDirectory() + "/config.ini";
8 string section = cboServiceGroup.Text;
9 string[] keys;
10 string[] values;
11 INIHelper.GetAllKeyValues(section?? out keys?? out values?? path);
12 //
13 foreach (string value in values)
14 {
15 ServiceController sc = new ServiceController(value);
16 try
17 {
18 ServiceControllerStatus scs = sc.Status;
19 if (scs != ServiceControllerStatus.Stopped)
20 {
21 try
22 {
23 sc.Stop();
24 }
25 catch (Exception ex)
26 {
27 MessageBox.Show("?????????
" + ex.ToString());
28 }
29 }
30 }
31 catch (Exception ex)
32 {
33 MessageBox.Show("?????????" + value);
34 }
35 //
36
37 }
38 //
39 MessageBox.Show("?????????");
40 }
|
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
???????C#?е?StringC# Socket???????????????????C#?????????????????????????C#???????C#????????????Log4net??????δ????C#?????????????C#?????????????????C#???????????????C#????????????????C#7 ?е?Tuple??????C#??TypeScript - GeneratorC# ?????????細??????????C#?е???н???C#??MySQL?????????μ??Ч?????д??C#????C++??dll???C#??VS2010????е??????