Esempio n. 1
0
        private void Preview3DLayerBtn_Click(object sender, RoutedEventArgs e)
        {
            string dataPath = _prjDef.LocalFilePath;
            string projID   = _prjDef.ID;

            Proj3DViewDefWindow proj3DViewDefWnd = new Proj3DViewDefWindow(dataPath, projID);

            proj3DViewDefWnd.Owner = this.Owner;
            proj3DViewDefWnd.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            proj3DViewDefWnd.Show();
        }
Esempio n. 2
0
        private void Preview3DLayerBtn_Click(object sender, RoutedEventArgs e)
        {
            Proj3DViewDefWindow proj3DViewDefWnd = new Proj3DViewDefWindow(_prjDef, Layer3DNameTB.Text);

            proj3DViewDefWnd.Model3dLoaded += (send, args) =>
            {
                _u3dLayer = args;
            };
            proj3DViewDefWnd.Owner = this.Owner;
            proj3DViewDefWnd.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            proj3DViewDefWnd.Show();
        }