aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Contracts/IMainView.cs
blob: 7431f1ef150dee014455edeeee10ca690347b2b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.SharedUI;

namespace Tango.MachineStudio.RML.Contracts
{
    public enum RmlNavigationView
    {
        RmlsView,
        RmlView,
    }

    public interface IMainView : IView
    {
        void NavigateTo(RmlNavigationView view);
    }
}
ic String DisplayName { get; set; } public override string ToString() { return DisplayName; } } public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { Type result = value as Type; if (parameter != null && parameter.ToString() == "false") { return Enum.GetValues(result); } else { return Enum.GetValues(result).Cast<object>().Select(e => new EnumValue() { Value = e, DisplayName = (e as Enum).ToDescription() }).ToList(); } } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { throw new NotImplementedException(); } } }