개정판 88cb9898
dev issue #1224 : add APID converter palette
Change-Id: If659946746d2344ae0665c40250c63fda57e2a69
DTI_PID/APIDConverter/Utils/APIDUtils.cs | ||
---|---|---|
25 | 25 |
|
26 | 26 |
return null; |
27 | 27 |
} |
28 |
|
|
29 |
public static void SetAvevaExplorer() |
|
30 |
{ |
|
31 |
bool exist = false; |
|
32 |
string sName = "APID Converter"; |
|
33 |
for (int i = 0; i < Aveva.Command.AvevaCommands.projectExplorer.Count; i++) |
|
34 |
{ |
|
35 |
if (Aveva.Command.AvevaCommands.projectExplorer[i].Name == sName) |
|
36 |
{ |
|
37 |
exist = true; |
|
38 |
Aveva.Command.AvevaCommands.projectExplorer.Remove(i); |
|
39 |
break; |
|
40 |
} |
|
41 |
} |
|
42 |
|
|
43 |
if (!exist) |
|
44 |
{ |
|
45 |
Aveva.Command.AvevaCommands.projectExplorer.Add(sName, new APIDConverterExplorer()); |
|
46 |
Aveva.Command.AvevaCommands.projectExplorer.Activate(Aveva.Command.AvevaCommands.projectExplorer.Count - 1); |
|
47 |
} |
|
48 |
|
|
49 |
} |
|
28 | 50 |
} |
29 | 51 |
} |
내보내기 Unified diff