PgMenu.xaml.cs 2.05 KB
using FLY.FeedbackRenZiJia.UI.Client.UiModule;
using FLY.HeatingHelper.UI.UiModule;
using FLY.OBJComponents.IService;
using FLY.Thick.Base.UI;
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)
        {
            var p = container.Resolve<PgHeatAnalyse>();
            MultiLayout.FlyLayoutManager.NavigationService.Navigate(p);
            
        }

        private void button_version_Click(object sender, RoutedEventArgs e)
        {

        }


        private void btnHeatingHelperClick(object sender, RoutedEventArgs e)
        {
            Page_HeatDetector page = new Page_HeatDetector();
            container.BuildUp(page);
            MultiLayout.FlyLayoutManager.NavigationService.Navigate(page);
        }

        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);
        }
    }
}