Exemplo n.º 1
0
        public U3DView(MainFrame mainFrame, Project prj, EngineeringMap eMap)
        {
            InitializeComponent();

            _mainFrame = mainFrame;
            _view3D = new IS3View3D(this, u3dPlayerControl);
            _view3D.prj = prj;
            _view3D.eMap = eMap;
        }
Exemplo n.º 2
0
        public void SwitchToMainFrame(string definitionFile)
        {
            pageTransitionControl.TransitionType =
                WpfPageTransitions.PageTransitionType.SlideLeftAndFade;
            MainFrame mainFrame = new MainFrame(definitionFile);
            pageTransitionControl.ShowPage(mainFrame);

            App app = App.Current as App;
            app.MainFrame = mainFrame;
        }
Exemplo n.º 3
0
        public SubProjectPanel(SubProject subPrj)
        {
            InitializeComponent();

            App app = App.Current as App;
            _mainFrame = app.MainFrame;

            _treePanel = new IS3ProjectTree(this, MyTreeView, subPrj);

            GotFocus += SubProjectPanel_GotFocus;
        }
Exemplo n.º 4
0
        public IS3Tree(UserControl parent, TreeView treeView,
            Tree tree)
        {
            App app = App.Current as App;
            _mainFrame = app.MainFrame;

            _parent = parent;
            _treeView = treeView;
            _treeRoot = tree;
            _treeView.ItemsSource = _treeRoot.Children;

            _isBusy = false;
        }
Exemplo n.º 5
0
        public ProfileView(MainFrame mainFrame, Project prj, EngineeringMap eMap)
        {
            InitializeComponent();

            _mainFrame = mainFrame;
            _view = new IS3ProfileView(this, MyMapView);
            _view.prj = prj;
            _view.eMap = eMap;
            MyProgressBar.DataContext = _view;

            GotFocus += ProfileView_GotFocus;
            MyDrawToolControl.drawToolClickEventHandler += _view.drawToolsClickEventListener;
            MyDrawToolControl.drawToolClickEventHandler += (o, e) =>
            {
                if (e.stopDraw)
                    DrawStrip.Visibility = Visibility.Collapsed;
            };
        }
Exemplo n.º 6
0
        public EditEMapWindow(MainFrame mainFrame, EngineeringMap eMap)
        {
            _mainFrame = mainFrame;
            _eMap = eMap;

            if (_eMap == null)
            {
                _eMap = new EngineeringMap();
                int count = _mainFrame.views.Count() + 1;
                _eMap.MapID = "MyView" + count.ToString();
                _eMap.MapType = EngineeringMapType.FootPrintMap;
                _eMap.MinimumResolution = 0.01;
            }

            InitializeComponent();

            if (_eMap.MapType == EngineeringMapType.FootPrintMap)
                MapType.SelectedIndex = 0;
            else if (_eMap.MapType == EngineeringMapType.GeneralProfileMap)
                MapType.SelectedIndex = 1;

            Root.DataContext = _eMap;
        }
Exemplo n.º 7
0
 public IS3Doc(MainFrame mainFrame,
     IS3View view, string filePath)
 {
     _mainFrame = mainFrame;
     _view = view;
     _filePath = filePath;
 }