public MainForm() { LoadAssetTypes(); InitializeComponent(); mainTabs.SelectedIndexChanged += (o, e) => { if (mainTabs.SelectedTab != null) { var treeView = mainTabs.SelectedTab.Controls["TreeViewWithSearchResults"] as Controls.TreeViewWithSearchResults; findToolStripButton.Enabled = (treeView != null); } }; searchForm = new Forms.SearchForm(); }
public MainForm() { LoadAssetTypes(); InitializeComponent(); mainTabs.SelectedIndexChanged += (o, e) => { if (mainTabs.SelectedTab != null) { var treeView = mainTabs.SelectedTab.Controls["TreeViewWithSearchResults"] as Controls.TreeViewWithSearchResults; findToolStripButton.Enabled = (treeView != null); } }; searchForm = new Forms.SearchForm(); NewLineRegex = new Regex(@"\r\n|\n\r|\n|\r", RegexOptions.Compiled | RegexOptions.CultureInvariant | RegexOptions.ExplicitCapture); }