Beispiel #1
0
        public static void ShowPanelsByHeight()
        {
            Document doc = Application.DocumentManager.MdiActiveDocument;
            Database db  = doc.Database;
            List <PanelAkrFacade> panelsAkr;

            using (var t = db.TransactionManager.StartTransaction())
            {
                panelsAkr = PanelLibrarySaveService.GetPanelsAkrInDb(db);
                foreach (var item in panelsAkr)
                {
                    item.DefineGeom(item.IdBtrAkrPanel);
                }
                t.Commit();
            }

            ViewNavigator   model = new ViewNavigator(panelsAkr);
            WindowNavigator win   = new WindowNavigator(model);

            Application.ShowModelessWindow(win);
        }
        public WindowNavigator(ViewNavigator model)
        {
            InitializeComponent();

            DataContext = model;
        }
        public WindowNavigator(ViewNavigator model)
        {
            InitializeComponent();

            DataContext = model;
        }