public MainWindow() { InitializeComponent(); Dispatcher.UnhandledException += ApplicationOnDispatcherUnhandledException; ProjectController = new ProjectController(); LayoutController = new LayoutController(); TextSearchController = new AvalonEditorSearchController(TeFile); LbDialogs.SelectionChanged += LbDialogsOnSelectionChanged; TeFile.TextChanged += TeFileOnTextChanged; TxtSearch.TextChanged += TxtSearchOnTextChanged; TbSearchInText.TextChanged += TbSearchInTextOnTextChanged; TbSearchInText.PreviewKeyDown += TbSearchInTextOnPreviewKeyDown; }
//public AvalonEditorSearchController TextSearchController { get; set; } public MainWindow() { InitializeComponent(); Dispatcher.UnhandledException += ApplicationOnDispatcherUnhandledException; ProjectController = new ProjectController(); LayoutController = new LayoutController(); //TextSearchController = new AvalonEditorSearchController(TeFile); LbDialogs.SelectionChanged += LbDialogsOnSelectionChanged; TeFile.TextChanged += TeFileOnTextChanged; TxtSearch.TextChanged += TxtSearchOnTextChanged; //TbSearchInText.TextChanged += TbSearchInTextOnTextChanged; //TbSearchInText.PreviewKeyDown += TbSearchInTextOnPreviewKeyDown; ProjectController.LoadLastState(); TbInterfacesPath.Text = ProjectController.InterfacesPath; LbDialogs.ItemsSource = ProjectController.Files; TbSurfacesPath.Text = ProjectController.SurfacesPath; }