Ejemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();
            DebugLogger.Instance.TextBox = DebugBox;
            var kernel = new StandardKernel(new SettingsModule(), new ViewModelModule(), new DatabaseModule());
            _viewModel = kernel.Get<MainViewModel>();
            DataContext = _viewModel;
            EditorBox.SyntaxParser = kernel.Get<ISyntaxParser>();

            _config = kernel.Get<IDbToolConfig>();
            _worksheetManager = kernel.Get<IWorksheetManager>();
            EditorBox.Text = _worksheetManager.Load().TrimEndingWhitespaces();
            ResultTable.LoadingRow += NastilyUpdateRowToAvoidStupidRowRecyclingProblems;
        }
Ejemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();
            DebugLogger.Instance.TextBox = DebugBox;
            var kernel = new StandardKernel(new SettingsModule(), new ViewModelModule(), new DatabaseModule(), new MetaModule());

            _viewModel             = kernel.Get <MainViewModel>();
            DataContext            = _viewModel;
            EditorBox.SyntaxParser = kernel.Get <ISyntaxParser>();

            _config                 = kernel.Get <IDbToolConfig>();
            _worksheetManager       = kernel.Get <IWorksheetManager>();
            EditorBox.Text          = _worksheetManager.Load().TrimEndingWhitespaces();
            ResultTable.LoadingRow += NastilyUpdateRowToAvoidStupidRowRecyclingProblems;
        }