public U3DView(MainFrame mainFrame, Project prj, EngineeringMap eMap) { InitializeComponent(); _mainFrame = mainFrame; _view3D = new IS3View3D(this, u3dPlayerControl); _view3D.prj = prj; _view3D.eMap = eMap; }
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; }
public SubProjectPanel(SubProject subPrj) { InitializeComponent(); App app = App.Current as App; _mainFrame = app.MainFrame; _treePanel = new IS3ProjectTree(this, MyTreeView, subPrj); GotFocus += SubProjectPanel_GotFocus; }
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; }
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; }; }
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; }
public IS3Doc(MainFrame mainFrame, IS3View view, string filePath) { _mainFrame = mainFrame; _view = view; _filePath = filePath; }