PgMainEdit.xaml.cs 1.58 KB
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
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;

潘栩锋's avatar
潘栩锋 committed
15 16

namespace MultiLayout.MainEdit
潘栩锋's avatar
潘栩锋 committed
17 18 19 20
{
    /// <summary>
    /// Page_MainEdit.xaml 的交互逻辑
    /// </summary>
21
    public partial class PgMainEdit : Page
潘栩锋's avatar
潘栩锋 committed
22
    {
潘栩锋's avatar
潘栩锋 committed
23
        FlyLayoutManager manager;
潘栩锋's avatar
潘栩锋 committed
24

25
        public PgMainEdit()
潘栩锋's avatar
潘栩锋 committed
26 27 28
        {
            InitializeComponent();
        }
潘栩锋's avatar
潘栩锋 committed
29
        public void Init(FlyLayoutManager manager)
潘栩锋's avatar
潘栩锋 committed
30
        {
潘栩锋's avatar
潘栩锋 committed
31
            this.manager = manager;
潘栩锋's avatar
潘栩锋 committed
32 33
        }

潘栩锋's avatar
潘栩锋 committed
34
        private void btnGageClick(object sender, RoutedEventArgs e)
潘栩锋's avatar
潘栩锋 committed
35
        {
潘栩锋's avatar
潘栩锋 committed
36 37 38
            PgMainEditGage p = new PgMainEditGage();
            p.Init(manager); 
            FlyLayoutManager.NavigationService.Navigate(p);
潘栩锋's avatar
潘栩锋 committed
39 40
        }

潘栩锋's avatar
潘栩锋 committed
41
        private void btnSettingClick(object sender, RoutedEventArgs e)
潘栩锋's avatar
潘栩锋 committed
42
        {
43
            WdMainConfig w = new WdMainConfig();
潘栩锋's avatar
潘栩锋 committed
44

潘栩锋's avatar
潘栩锋 committed
45
            w.Init(manager);
潘栩锋's avatar
潘栩锋 committed
46 47 48
            w.Owner = FLY.ControlLibrary.COMMON.GetWindow(this);
            w.ShowDialog();
        }
潘栩锋's avatar
潘栩锋 committed
49 50 51 52 53 54

        private void btnBackClick(object sender, RoutedEventArgs e)
        {
            FlyLayoutManager.NavigationService.GoBack();
        }

55 56 57 58 59 60
        private void btnFileClick(object sender, RoutedEventArgs e)
        {
            WdLoadFile w = new WdLoadFile();
            w.Owner = FLY.ControlLibrary.COMMON.GetWindow(this);
            w.ShowDialog();
        }
潘栩锋's avatar
潘栩锋 committed
61 62
    }
}