Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OKB/HeuristicLab.OKB.Cockpit/DefaultItems.cs @ 4918

Last change on this file since 4918 was 4311, checked in by swagner, 14 years ago

Integrated OKB clients for HL 3.3 (#1166)

File size: 1.3 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using HeuristicLab.MainForm.WPF;
6
7namespace HeuristicLab.OKB.Cockpit {
8
9  public class FileMenuItem : WPFMenuItem, IOKBCockpitItem {
10
11    public override string Name {
12      get { return "File"; }
13    }
14    public override int Position {
15      get { return 0; }
16    }
17    public override void Execute() {     
18    }
19  }
20
21  public class ExtrasRunGCMenuItem : WPFMenuItem, IOKBCockpitItem {
22
23    public override string Name {
24      get { return "Run Garbage Collector"; }
25    }
26
27    public override IEnumerable<string> Structure {
28      get {
29        return new[] { "Extras" };
30      }
31    }
32
33    public override int Position {
34      get { return 9999; }
35    }
36
37    public override void Execute() {
38      GC.Collect();
39    }
40  }
41
42  public class FileExitMenuItem : WPFMenuItem, IOKBCockpitItem {
43
44    public override string Name {
45      get { return "Exit"; }
46    }
47
48    public override int Position {
49      get { return 9999; }
50    }
51   
52    public override IEnumerable<string> Structure {
53      get {
54        return new[] { "File" };
55      }
56    }
57
58    public override void Execute() {
59      MainForm.MainFormManager.MainForm.Close();
60    }
61
62  } 
63}
Note: See TracBrowser for help on using the repository browser.