PgMenu.xaml.cs 2.05 KB
Newer Older
1
using FLY.FeedbackRenZiJia.UI.Client.UiModule;
2
using FLY.HeatingHelper.UI.UiModule;
3 4
using FLY.OBJComponents.IService;
using FLY.Thick.Base.UI;
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Unity;

namespace FLY.FeedbackRenZiJia.UI.Client
{
    /// <summary>
    /// Page_Menu.xaml 的交互逻辑
    /// </summary>
    public partial class PgMenu : Page
    {
        IUnityContainer container;
        public PgMenu()
        {
            InitializeComponent();
        }

        [InjectionMethod]
        public void Init(IUnityContainer container)
        {
            this.container = container;
        }

        private void button_set_Click(object sender, RoutedEventArgs e)
        {
            var p = container.Resolve<PgSetup>();
            MultiLayout.FlyLayoutManager.NavigationService.Navigate(p);
        }

        private void button_heatlist_Click(object sender, RoutedEventArgs e)
        {
47
            var p = container.Resolve<PgHeatAnalyse>();
48 49 50 51 52 53 54 55 56
            MultiLayout.FlyLayoutManager.NavigationService.Navigate(p);
            
        }

        private void button_version_Click(object sender, RoutedEventArgs e)
        {

        }

57 58 59 60 61 62 63

        private void btnHeatingHelperClick(object sender, RoutedEventArgs e)
        {
            Page_HeatDetector page = new Page_HeatDetector();
            container.BuildUp(page);
            MultiLayout.FlyLayoutManager.NavigationService.Navigate(page);
        }
64 65 66 67 68 69 70 71

        private void button_error_Click(object sender, RoutedEventArgs e)
        {
            PgErrorTable2 p = new PgErrorTable2();
            var warningService = container.Resolve<IWarningSystem2Service>("airRingWarningService");
            p.Init(container, warningService);
            NavigationService.Navigate(p);
        }
72 73
    }
}