示例#1
0
 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;
 }
示例#2
0
 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;
 }