Example #1
0
        public FrameworkElement GetPropertyPage(EPropPage pg, string connection, string lang)
        {
            switch (pg)
            {
            case EPropPage.pDokument:
                var vmDoc = new DocumentViewModel();
                Nacist(vmDoc);
                vmDoc.Broker = s_broker;
                var docView = new DocumentView {
                    DataContext = vmDoc
                };
#if (DEBUG)
                return(new Okna.Plugins.Interception.InterceptionView(docView, true));
#else
                return(docView);
#endif

            case EPropPage.pDziura:
                var vmPos = new PositionViewModel();
                Nacist(vmPos);
                s_broker.Position = vmPos;
                var posView = new PositionView {
                    DataContext = vmPos
                };
#if (DEBUG)
                return(new Okna.Plugins.Interception.InterceptionView3(posView));
#else
                return(posView);
#endif
            }

            return(null);
        }
Example #2
0
        public FrameworkElement GetPropertyPage(EPropPage pg, string connection, string lang)
        {
            switch (pg)
            {
            case EPropPage.pDziura:
                return(new WindowOffsetPage());
            }

            return(null);
        }
Example #3
0
        public FrameworkElement GetPropertyPage(EPropPage pg, string connection, string lang)
        {
            switch (pg)
            {
            case EPropPage.pDokument:
                return(new DocumentPage(connection));
            }

            return(null);
        }
Example #4
0
        public FrameworkElement GetPropertyPage(EPropPage pg, string connection, string lang)
        {
            switch (pg)
            {
            case EPropPage.pDziura:
                var vm = new CanvasViewModel();
                return(new ShapeOffsetPage {
                    DataContext = vm
                });
            }

            return(null);
        }
Example #5
0
        public FrameworkElement GetPropertyPage(EPropPage pg, string connection, string lang)
        {
            switch (pg)
            {
            case EPropPage.pSzyba:
                var vm   = new ReklamaceSklaViewModel();
                var view = new ReklamaceSklaView {
                    DataContext = vm
                };
#if (DEBUG)
                return(new Okna.Plugins.Interception.InterceptionView(view));
#else
                return(view);
#endif
            }

            return(null);
        }