1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| using OpenTap;
|
| namespace SeqEditor.Util
| {
| public class UIPlanManager
| {
| private Dictionary<string, TestPlan> cache = new Dictionary<string, TestPlan>();
|
|
|
| public string TryOpenPlan(string path)
| {
| if (cache.ContainsKey(path))
| return cache[path].Name;
| var plan = TestPlan.Load(path);
| if (plan == null)
| return null;
| cache[path] = plan;
| return plan.Name;
| }
| }
| }
|
|