Exemplo n.º 1
0
        public MainBarHandler()
        {
            ListView   = new ItemControl <MainBarControl>();
            HitTesting = new HitTesting {
                W = 1600, H = 200, Y = 900, X = 0
            };
            GameManager.Instance.GManager.GRef.D3OverlayControl.HitTesting.Add(HitTesting);
            Control = ListView.D3RenderControl;

            (Control as UserControl).Loaded += (s, e) => Initialize();
        }
Exemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();

            NetworkModel networkModel = new NetworkModel();

            networkModel = MapHandler.LoadModelToMap(networkModel, MyModel);

            transformation = new Transformation(viewport, skaliranje, this, translate, rotateX, rotateY);

            hitTest = new HitTesting(viewport, model3DGroup, this);
        }