public void Deinit() { Focuser.Current.Stop(); Settings.Current.active = this.cbListen.Checked; Settings.Save(); Listener.Current.Deinit(); this.StopUserActivityBroadcaster(); this.cbListen.CheckedChanged -= new System.EventHandler(this.cbListen_CheckedChanged); this.btnClearLockedSelectionItems.Click -= new System.EventHandler(this.btnClearLockedSelectionItems_Click); this.btnClearSelectionItems.Click -= new System.EventHandler(this.btnClearSelectionItems_Click); this.Move -= new EventHandler(FormSelectionListener_Move); this.Resize -= new EventHandler(FormSelectionListener_Resize); this.scItems.SplitterMoved -= new SplitterEventHandler(scItems_SplitterMoved); this.FormClosed -= new System.Windows.Forms.FormClosedEventHandler(this.FormSelectionListener_FormClosed); this.Dispose(true); FormSelectionListener._current = null; SelectionListener.Started = false; Thread aborterThread = new Thread(AbortThread); aborterThread.Start(); }
public SelectionItem(FormSelectionListener parentForm, string content) { this._parentForm = parentForm; this._content = content; InitializeComponent(); this.cbLock.BackgroundImage = global::EnsoPlus.Properties.Resources.Unlocked; this.tbContent.Text = this._content; this.tbContent.BackColor = Settings.Current.backgroundColor; this.tbContent.ForeColor = Settings.Current.normalTextForeColor; this.tbContent.Font = Settings.Current.normalFont.font; UpdateTooltip(); this.tbContent.MouseHover += new EventHandler(SelectionItem_MouseHover); this.MouseHover += new EventHandler(SelectionItem_MouseHover); this.btnCopy.MouseHover += new EventHandler(SelectionItem_MouseHover); this.btnRemove.MouseHover += new EventHandler(SelectionItem_MouseHover); this.btnView.MouseHover += new EventHandler(SelectionItem_MouseHover); this.cbLock.MouseHover += new EventHandler(SelectionItem_MouseHover); this.cbLock.CheckedChanged += new System.EventHandler(this.cbLock_CheckedChanged); this.tbContent.TextChanged += new System.EventHandler(this.tbContent_TextChanged); this.tbContent.MouseDown += new MouseEventHandler(this.tbContent_MouseDown); this.tbContent.DoubleClick += new EventHandler(tbContent_DoubleClick); this.tbContent.MouseMove += new MouseEventHandler(tbContent_MouseMove); }
public void Deinit() { this._blockedByMouseHover = false; this._blockedByCheckbox = false; this._blockedByPasteOperation = false; this._blockedByModifierKey = false; this._blockedByMouseWheel = false; this._service = null; this._formSelectionListener = null; }
public void Init(IEnsoService service, FormSelectionListener formSelectionListener) { this._service = service; this._formSelectionListener = formSelectionListener; this._lastAddedSelection = null; this._blockedByMouseHover = false; this._blockedByCheckbox = false; this._blockedByPasteOperation = false; this._blockedByModifierKey = false; this._blockedByMouseWheel = false; }