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 MainWindow() { InitializeComponent(); ElementsName = 0; 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; }