SECI  1
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events
MenuWrapper.xaml.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.Windows;
6 using System.Windows.Controls;
7 using System.Windows.Data;
8 using System.Windows.Documents;
9 using System.Windows.Input;
10 using System.Windows.Media;
11 using System.Windows.Media.Imaging;
12 using System.Windows.Navigation;
13 using System.Windows.Shapes;
14 
15 namespace SeciControls
16 {
20  public partial class MenuWrapper : UserControl
21  {
22  //Forward the events
23  public event RoutedEventHandler OnNewClicked
24  {
25  add { menu.OnNewClicked += value; }
26  remove { menu.OnNewClicked -= value; }
27  }
28 
29  public event RoutedEventHandler OnOpenClicked
30  {
31  add { menu.OnOpenClicked += value; }
32  remove { menu.OnOpenClicked -= value; }
33  }
34 
35  public event RoutedEventHandler OnSaveClicked
36  {
37  add { menu.OnSaveClicked += value; }
38  remove { menu.OnSaveClicked -= value; }
39  }
40 
41  public event RoutedEventHandler OnSaveAsClicked
42  {
43  add { menu.OnSaveAsClicked += value; }
44  remove { menu.OnSaveAsClicked -= value; }
45  }
46 
47  public event RoutedEventHandler OnExitClicked
48  {
49  add { menu.OnExitClicked += value; }
50  remove { menu.OnExitClicked -= value; }
51  }
52 
53  public event RoutedEventHandler OnLoginClicked
54  {
55  add { menu.OnLoginClicked += value; }
56  remove { menu.OnLoginClicked -= value; }
57  }
58 
59  public event RoutedEventHandler OnLogoutClicked
60  {
61  add { menu.OnLogoutClicked += value; }
62  remove { menu.OnLogoutClicked -= value; }
63  }
64 
65  public event RoutedEventHandler OnRecentConfigClicked
66  {
67  add { menu.OnRecentConfigClicked += value; }
68  remove { menu.OnRecentConfigClicked -= value; }
69  }
70 
71  public Boolean LogInEnabled { get { return menu.LogInEnabled; } set { menu.LogInEnabled = value; } }
72  public Boolean LogOutEnabled { get { return menu.LogOutEnabled; } set { menu.LogOutEnabled = value; } }
73 
74  public MenuWrapper()
75  {
76  InitializeComponent();
77  }
78 
79  public void SetLastConfigs(List<String> recent)
80  {
81  menu.AddRecentConfigs(recent);
82  }
83  }
84 }
RoutedEventHandler OnLogoutClicked
RoutedEventHandler OnLoginClicked
Interaction logic for MenuWrapper.xaml
RoutedEventHandler OnNewClicked
RoutedEventHandler OnOpenClicked
RoutedEventHandler OnSaveClicked
RoutedEventHandler OnSaveAsClicked
RoutedEventHandler OnRecentConfigClicked
RoutedEventHandler OnExitClicked
void SetLastConfigs(List< String > recent)