source: trunk/CrypTool/MainWindow.xaml.cs @ 1423

Last change on this file since 1423 was 1423, checked in by matkovic, 12 years ago
  • Open source Ribbon implemented (for Saternus)
  • LoadPlugins() problems(?)
  • added open source Ribbon dll

override-bad-extension: Odyssey.dll

File size: 2.0 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows;
6using System.Windows.Controls;
7using System.Windows.Data;
8using System.Windows.Documents;
9using System.Windows.Input;
10using System.Windows.Media;
11using System.Windows.Media.Imaging;
12using System.Windows.Navigation;
13using System.Windows.Shapes;
14using Odyssey.Controls;
15using Odyssey.Controls.Classes;
16
17namespace CrypTool
18{
19    /// <summary>
20    /// Interaction logic for MainWindow.xaml
21    /// </summary>
22    public partial class MainWindow : RibbonWindow
23    {
24        private Dictionary<string, List<Type>> currentPlugins = new Dictionary<string, List<Type>>();
25
26        public Dictionary<string, Type> LoadedTypes { get; set; }
27
28        public MainWindow()
29        {
30            InitializeComponent();
31        }
32
33        private void RibbonButton_Click(object sender, RoutedEventArgs e)
34        {
35            if (SkinManager.SkinId == SkinId.OfficeBlue)
36                SkinManager.SkinId = SkinId.OfficeBlack;
37            else
38                SkinManager.SkinId = SkinId.OfficeBlue;
39        }
40
41        private void LoadPlugins()
42        {
43            //foreach (Type pluginType in this.LoadedTypes.Values)
44            //{
45            //    if (pluginType.GetEditorSpecificPluginAttribute() != null)
46            //        continue;
47
48            //    foreach (string interfaceName in PluginExtension.Interfaces)
49            //    {
50            //        if (pluginType.GetInterface(interfaceName) != null)
51            //        {
52            //            if (!this.currentPlugins.ContainsKey(interfaceName))
53            //                this.currentPlugins.Add(interfaceName, new List<Type>());
54
55            //            this.currentPlugins[interfaceName].Add(pluginType);
56            //        }
57            //    }
58            //}
59        }
60
61        private void Window_Loaded(object sender, RoutedEventArgs e)
62        {
63            LoadPlugins();
64        }
65    }
66}
Note: See TracBrowser for help on using the repository browser.