source: trunk/CrypPlugins/WorkspaceManager/View/Converter/OverlapConverter.cs @ 2803

Last change on this file since 2803 was 2803, checked in by kopal, 11 years ago
File size: 1.3 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows.Data;
6using WorkspaceManager.View.Container;
7using System.Windows;
8using System.Windows.Controls;
9using WorkspaceManager.Model;
10
11namespace WorkspaceManager.View.Converter
12{
13    class OverlapConverter : IValueConverter
14    {
15        #region IValueConverter Members
16
17        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
18        {
19            PluginViewState state = (PluginViewState)value;
20            String caption = (String)parameter;
21            if (caption == "PresentationPanel" && state == PluginViewState.Presentation)
22                return 1000;
23
24            if (caption == "SettingsPanel" && state == PluginViewState.Setting)
25                return 1000;
26
27            if (caption == "LogPanel" && state == PluginViewState.Log)
28                return 1000;
29
30            if (caption == "DataPanel" && state == PluginViewState.Data)
31                return 1000;
32
33            return 0;
34        }
35
36        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
37        {
38            throw new NotImplementedException();
39        }
40
41        #endregion
42    }
43}
Note: See TracBrowser for help on using the repository browser.