상속: SharpDox.GUI.ViewModels.ViewModelBase
예제 #1
0
        public Shell(IConfigController configController, IExporter[] allExporters, ILocalController localController, BuildController buildController)
        {
            var guiStrings = localController.GetLocalStrings<SDGuiStrings>();
            DataContext = new ShellViewModel(guiStrings, configController, buildController, ExecuteOnClose);
            Strings = guiStrings;
            Style = (Style)FindResource("SharpDoxWindowStyle");

            Closing += (sender, args) => ExecuteOnClose();
            SourceInitialized += OnWindowSourceInitialized;

            InitializeComponent();
            svBody.Content = new ConfigGridControl(configController, allExporters, localController, buildController);
        }
예제 #2
0
        public Shell(SDGuiStrings strings, SharpDoxConfig sharpDoxConfig, IConfigController configController, IPage[] allPages)
        {
            _allPages = allPages;

            DataContext = new ShellViewModel(strings, configController, sharpDoxConfig, ExecuteOnClose);
            Strings = strings;

            InitializeComponent();
            SetMainMenu();
            SetExportDropDown();

            MouseLeftButtonDown += (s, a) => DragMove();
        }