Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using HeuristicLab.MainForm.WPF;
|
---|
6 |
|
---|
7 | namespace 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.