public SchemaDiagrammerController(MainWindow window, EditModel editModelScreen)
 {
     this.window = window;
     controller = new SchemaController(window.Controller);
     controller.EditModel = editModelScreen;
     window.LayoutFinished += window_LayoutFinished;
 }
Пример #2
0
        public override void CreateScreens()
        {
            if (screensCreated) return;

            // This hack prevents the debugger from loading the provider screens.
            if (Thread.CurrentThread.GetApartmentState() != ApartmentState.STA) return;

            editModelScreen = new EditModel { Provider = this };
            editModelScreen.SetMappingSet(MappingSet);

            Screens = new[] { (ContentItem)editModelScreen };

            screensCreated = true;
        }