WarningMenu.cs 827 Bytes
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2
using MultiLayout;
using MultiLayout.UiModule;
3 4 5
using System.Diagnostics;
using System.IO;
using System.Windows;
6 7 8 9 10 11 12
using System.Windows.Media;
using Unity;

namespace FLY.Thick.Base.UI.CustomMenu
{
    public class WarningMenu : IMenu
    {
13
        public string Title { get; private set; }
14 15 16 17 18 19 20 21 22 23

        public Brush Brush { get; set; }




        IUnityContainer container;
        public WarningMenu(IUnityContainer container)
        {
            this.container = container;
24
            string title = (string)Application.Current.TryFindResource("str.CustomMenu.Warning");
25 26
            Title = title;

27 28 29 30
            Brush = Brushes.Red;

        }

潘栩锋's avatar
潘栩锋 committed
31
        public void OnClick()
32 33 34
        {
            var p = this.container.Resolve<PgErrorsTable>();
            FlyLayoutManager.NavigationService.Navigate(p);
潘栩锋's avatar
潘栩锋 committed
35

36 37 38
        }
    }
}