internal void OnDisconnected(Connection connection) { // unregister not the method here, but the registered method connection.OnDisconnected -= this.mainForm.OnDisconnected; var tabPage = new TabControlFilter(this.tcTerminals).FindTabToClose(connection); this.InvokeCloseTab(tabPage); }
internal TerminalTabsSelectionControler(TabControl.TabControl tabControl, IPersistence persistence) { this.mainTabControl = tabControl; this.filter = new TabControlFilter(tabControl); persistence.Dispatcher.FavoritesChanged += new FavoritesChangedEventHandler(this.OnFavoritesChanged); }
internal PopupTerminal(TerminalTabsSelectionControler mainTabsControler) : this() { this.mainTabsControler = mainTabsControler; this.filter = new TabControlFilter(this.tabControl1); }