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); }
public FrameworkElement GetPropertyPage(EPropPage pg, string connection, string lang) { switch (pg) { case EPropPage.pDziura: return(new WindowOffsetPage()); } return(null); }
public FrameworkElement GetPropertyPage(EPropPage pg, string connection, string lang) { switch (pg) { case EPropPage.pDokument: return(new DocumentPage(connection)); } return(null); }
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); }
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); }